ÇóÖú£¡£¡vb³ÌÐò
Éè¼ÆÒ»¸öÊó±ê»Í¼³ÌÐò£¬½çÃæÉè¼Æ£¬´°ÌåÖÐÌí¼ÓÒ»¸öpicturebox¿Ø¼þ£¬Ò»¸öcombobox×éºÏÏÂÀ¿ò¡¢Ò»¸öͨÓöԻ°¿òÓëÁ½¸öÃüÁî¿ò£¬ÒÔÏÂÊÇÎҵijÌÐò£¬µ«ÊÇÎÒÔËÐеÄʱºò×ÜÊÇÌáʾ±äÁ¿Î´¶¨Ò壬»¹Íû¸÷λ´óÏÀ°ïæָÕýÄÄÀï³öÁËÎÊÌâ
Option Explicit
Dim x0 As Integer, y0 As Integer
Private Sub Combo1_Click()
Picture1.DrawWidth = Val(Combol.Text)
End Sub
Private Sub Command2_Click()
CommomDialog1.ShowColor
Picture1.ForeColor = CommonDialog1.Color
End Sub
Private Sub Command3_Click()
Picture1.Cls
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 9
Combol.AddItem Str(i + 1), i
Next i
Picture1.AutoRedraw = Ture
Picture1.Cls
Picture1.ForeColor = vbWhite
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If buttom = 1 Then
Picture1.Line (x0, y0)-(X, Y)
End If
x0 = X
y0 = Y
End Sub
ʹÓÃF8
ÎÒ²»ÖªµÀÊdzÌÐò´íÁË»¹ÊÇÓ¦¸Ã¶ÔÊôÐÔÖµ½øÐиÄÕý£¿
µ¥²½µ÷ÊÔ£¬¿´ÄǾä³ö´í
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 9
Combol.AddItem Str(i + 1), i
Next i
Picture1.AutoRedraw = Ture
Picture1.Cls
Picture1.ForeColor = vbWhite
End Sub
Õâ¸öÖеÄCombol.AddItem Str(i + 1), i˵ÊÇ䶨Ò壿£¿£¿£¿²»ÖªµÀÔõô¸Ä
Ïà¹ØÎÊ´ð£º
´úÂëÈçÏ£º
Private Sub MSFlexGrid1_SelChange()
If MSFlexGrid1.Rows = 1 Then Exit Sub
If MSFlexGrid1.Row = 0 Then Exit Sub
grid_row = MSFlexGrid1.Row
......
¸÷룬ÇëÎʹ³×ÓÊÇÔõôÔËÐеİ¡£¿ÇëÏÈ¿´¿´ÎÒдµÄ´úÂ룺
Public hhook
Private Sub Command1_Click()
hhook = SetWindowsHookEx(2, AddressOf testhook, 0, App.ThreadID)
End Sub
ÒÔϵ ......
ÔÚÎҵijÌÐòÀ½øÈ롰ɾ³ýÓû§¡±£¬"Ìí¼ÓÓû§"´°Ìå֮ǰ¾ùÏȵ¯³öÒ»¸ö´°ÌåÒªÇóÊäÈë¹ÜÀíÔ±ÃÜÂ룬ÊäÈëÕýÈ·Ö®ºó²ÅÄܽøÈëÏàÓ¦½çÃ棬ÈçºÎÉè¼Æ´úÂ룿
¶ÁÊý¾Ý¿âÀïÃæ¹ÜÀíÔ±µÄÃÜÂë
È»ºó¸úÊäÈëµÄÄÚÈݱȽÏ
ºÜ¼òµ¥ ......
¹¦ÄÜ£ºÔÚÊäÈëµãµÄ×ø±êºó£¬»³ö¶ÔÓ¦µÄµã£»ÔÚ»Á˵ãºó£¬¿ÉÒÔÐ޸ĵãµÄ×ø±ê£¬²¢´Óл£»Öظ´Ö±µ½Í¼ÐÎÂÖÀª»Íê¡£²¢¿ÉÒÔ½«µãµÄ×ø±ê×÷ΪÎı¾ÎĵµÊä³ö¡£
ÎÒ²»ÖªµÀÔõôÄÜʵÏÖ£¬Ð»Ð»£¡
ÓÃPictureBoxʵÏÖ°É,ÐèÒª¶Ô×ø±êµ¥Î»» ......