Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : vb

dz̸VB±à³ÌÖÐÍø¸ñ¿Ø¼þµÄÑ¡Óü°Ê¹Ó÷½·¨

 ÄÚÈÝÌáÒªÕªÒª£º The software of visual basic developed by Microsoft corporation is becoming one of the main develop tools at today¡£ As it's remarkable peculiarity, the Grid control has very great practical and active use¡£ This topic discusses how to use the grid control of VB to develop pratical software and how to use it conveniently and simply¡£ ΢Èí¹«Ë¾µÄÃæ¶Ô¶ÔÏóµÄ³ÌÐò¿ª·¢Èí¼þVB(Visual Basic)ÈÕÒæ³ÉΪµ±Ç°ËùÁ÷ÐеÄÖ÷Á÷¿ª·¢¹¤¾ß¡£×÷ΪÆäÏÔÖøµÄÌØÉ«Ö®Ò»£¬VBËùÌṩµÄÍø¸ñÀà¿Ø¼þ£¬ÔÚʵ¼ÊµÄÊý¾Ý¿â¹ÜÀíϵͳµÄ¿ª·¢¹ý³ÌÖоßÓкܴóµÄʵÓÃÐÔºÍÁé»îÐÔ¡£±¾ÎÄÖ¼ÔÚÌÖÂÛÔÚʹÓÃVBµÄʵ¼Ê¿ª·¢¹ý³ÌÖУ¬ÈçºÎÓÐÑ¡ÔñµÄʹÓÃVBËùÌṩµÄÍø¸ñÀà¿Ø¼þÒÔ¼°ÈçºÎ·½±ã¡¢¼ò½àµÄȥʹÓá£
»ãÕªÒª£º Component-Based Development Virtual Data Management Spread's Calc Engine ¹¹¼þ¿ª·¢ ÐéÄâÊý¾Ý¹ÜÀí ¼ÆËãÒýÇæ
Ëæ×Å»ùÓÚ¹¹¼þ¿ª·¢(Component-Based Development)¼¼ÊõµÄ·¢Õ¹£¬¹©¿ª·¢ÕßʹÓõÄÈí¼þ¹¹¼þÔ½À´Ô½¶à£¬µ¥¾ÍVBÖпÉʹÓõÄÍø¸ñÀà¿Ø¼þÒ²ÓÐÐí¶àÖÖ¡£Íø¸ñÀà¿Ø¼þ³£ÓÃÔÚÊý¾Ý¿â¹ÜÀíϵͳµÄ¿ª·¢ÖУ¬ÓÃÀ´Ö±¹ÛµØÏÔʾ±í»òÊÓͼµÄ¶þά¹Øϵ£¬ÔÚ¶ÔÊý¾ÝµÄ²Ù×÷ÉÏ£¬ÓÐЩ¿Ø¼þÒ²ÌṩÁ˺ܶà ......

dzÒé·ÇAccessÊý¾Ý¿âÔÚVBÖеıà³Ì¼°Ó¦ÓÃ

Visual BasicÓÐ×ÅÇ¿´óµÄÊý¾Ý¿â´æÈ¡ÄÜÁ¦£¬²»½öÄܹ»Ö±½ÓÖ§³ÖMs AccessÊý¾Ý¿â£¬¶øÇÒͨ¹ýÆäÄÚ²¿°²×°µÄISAMÇý¶¯³ÌÐòʹËüÄܼä½ÓÖ§³ÖFoxPro¡¢dBASEµÈÍâÀ´Êý¾Ý¿â¡£±¾ÎIJ»½ö´ÓVBÊý¾Ý¿âÌåϵ½á¹¹µÄ½Ç¶È̽Ë÷ÁËVB¶ÔÕâЩÍâÀ´Êý¾Ý¿âµÄÖ§³Ö£¬»¹½áºÏÁËһЩʵÀý¾ßÌå²ûÊöÁËʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿µÄ·½·¨ÊµÏÖÕâЩÍâÀ´Êý¾Ý¿âµÄн¨¡¢¿â½á¹¹Ð޸ġ¢ÏÔʾ¼°ÆäÔËÐл·¾³ÉèÖá£
Visual Basic Access, ÍâÀ´Êý¾Ý¿â,Êý¾Ý¿â
ÕýÎÄ
´æÈ¡¶ÔÏó±äÁ¿¿â½á¹¹×÷Ϊһ¸ö¹¦ÄܽÏÍ걸µÄWindowsÈí¼þ¿ª·¢Æ½Ì¨£¬Visual Basicרҵ°æÌṩÁ˶ÔÊý¾Ý¿âÓ¦ÓõÄÇ¿´óÖ§³Ö¡£ÓÈÆäÌṩÁËʹÓÃÊý¾Ý¿Ø¼þºÍ°ó¶¨¿ØÖÆÏʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿£¨Data Access Object Variable£©£¬Ö±½Óµ÷ÓÃODBC 2.0 API½Ó¿Úº¯ÊýµÈÈýÖÖ·ÃÎÊÊý¾Ý¿âµÄ·½·¨¡£¶ÔÆä±ê×¼ÄÚÖõÄMs AccessÊý¾Ý¿â£¬Ëü¿ÉÒÔÌṩ²»ÈõÓÚרҵÊý¾Ý¿âÈí¼þµÄÖ§³Ö£¬¿ÉÒÔ½øÐÐÍêÕûµÄÊý¾Ý¿âά»¤¡¢²Ù×÷¼°ÆäÊÂÎñ´¦Àí¡£ÔÚVBÖУ¬½«·ÇAccessÊý¾Ý¿â³ÆΪÍâÀ´Êý¾Ý¿â¡£¶ÔÓÚFoxPro¡¢dBASE¡¢ParadoxµÈÍâÀ´Êý¾Ý¿â¡£ËäÈ»½èÖúVBµÄData Manager Äܹ»¶ÔÕâЩÊý¾Ý¿â½øÐÐNEW¡¢OPEN¡¢DESIGN¡¢DELETEµÈ²Ù×÷£¬µ«ÔÚÓ¦ÓóÌÐòµÄÔËÐÐ״̬Öв¢²»ÄܴӵײãÕæÕýʵÏÖÕâЩ¹¦ÄÜ¡£±¾ÎÄ´ÓʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿µÄ·½·¨³ö·¢£¬ÊµÏÖÁË·ÇAccess¸ ......

dzÒé·ÇAccessÊý¾Ý¿âÔÚVBÖеıà³Ì¼°Ó¦ÓÃ

Visual BasicÓÐ×ÅÇ¿´óµÄÊý¾Ý¿â´æÈ¡ÄÜÁ¦£¬²»½öÄܹ»Ö±½ÓÖ§³ÖMs AccessÊý¾Ý¿â£¬¶øÇÒͨ¹ýÆäÄÚ²¿°²×°µÄISAMÇý¶¯³ÌÐòʹËüÄܼä½ÓÖ§³ÖFoxPro¡¢dBASEµÈÍâÀ´Êý¾Ý¿â¡£±¾ÎIJ»½ö´ÓVBÊý¾Ý¿âÌåϵ½á¹¹µÄ½Ç¶È̽Ë÷ÁËVB¶ÔÕâЩÍâÀ´Êý¾Ý¿âµÄÖ§³Ö£¬»¹½áºÏÁËһЩʵÀý¾ßÌå²ûÊöÁËʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿µÄ·½·¨ÊµÏÖÕâЩÍâÀ´Êý¾Ý¿âµÄн¨¡¢¿â½á¹¹Ð޸ġ¢ÏÔʾ¼°ÆäÔËÐл·¾³ÉèÖá£
Visual Basic Access, ÍâÀ´Êý¾Ý¿â,Êý¾Ý¿â
ÕýÎÄ
´æÈ¡¶ÔÏó±äÁ¿¿â½á¹¹×÷Ϊһ¸ö¹¦ÄܽÏÍ걸µÄWindowsÈí¼þ¿ª·¢Æ½Ì¨£¬Visual Basicרҵ°æÌṩÁ˶ÔÊý¾Ý¿âÓ¦ÓõÄÇ¿´óÖ§³Ö¡£ÓÈÆäÌṩÁËʹÓÃÊý¾Ý¿Ø¼þºÍ°ó¶¨¿ØÖÆÏʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿£¨Data Access Object Variable£©£¬Ö±½Óµ÷ÓÃODBC 2.0 API½Ó¿Úº¯ÊýµÈÈýÖÖ·ÃÎÊÊý¾Ý¿âµÄ·½·¨¡£¶ÔÆä±ê×¼ÄÚÖõÄMs AccessÊý¾Ý¿â£¬Ëü¿ÉÒÔÌṩ²»ÈõÓÚרҵÊý¾Ý¿âÈí¼þµÄÖ§³Ö£¬¿ÉÒÔ½øÐÐÍêÕûµÄÊý¾Ý¿âά»¤¡¢²Ù×÷¼°ÆäÊÂÎñ´¦Àí¡£ÔÚVBÖУ¬½«·ÇAccessÊý¾Ý¿â³ÆΪÍâÀ´Êý¾Ý¿â¡£¶ÔÓÚFoxPro¡¢dBASE¡¢ParadoxµÈÍâÀ´Êý¾Ý¿â¡£ËäÈ»½èÖúVBµÄData Manager Äܹ»¶ÔÕâЩÊý¾Ý¿â½øÐÐNEW¡¢OPEN¡¢DESIGN¡¢DELETEµÈ²Ù×÷£¬µ«ÔÚÓ¦ÓóÌÐòµÄÔËÐÐ״̬Öв¢²»ÄܴӵײãÕæÕýʵÏÖÕâЩ¹¦ÄÜ¡£±¾ÎÄ´ÓʹÓÃÊý¾Ý¿â´æÈ¡¶ÔÏó±äÁ¿µÄ·½·¨³ö·¢£¬ÊµÏÖÁË·ÇAccess¸ ......

VB ·¢ËÍÄ£Äâ°´¼ü

Dim ReturnValue, I
ReturnValue = Shell("Calc.EXE", 1) ' ÔËÐмÆËãÆ÷¡£
AppActivate ReturnValue ' ¼¤»î¼ÆËãÆ÷¡£
For I = 1 To 100 ' ÉèÖüÆÊýÑ­»·¡£
SendKeys I & "{+}", True ' °´Ï°´¼ü¸ø¼ÆËãÆ÷
Next I ' ½«ËùÓÐ I ÖµÏà¼Ó¡£
SendKeys "=", True ' È¡µÃ×ܺϡ£
SendKeys "%{F4}", True ' °´ ALT+F4 ¹Ø±Õ¼ÆËãÆ÷   http://zhidao.baidu.com/question/33428479.html
´°Ìå´úÂ룺
Ç°ÌáÄãµÃµÃµ½ÄãÓÎÏ·µÄ¾ä±ú hwnd = &H307F8   '°Ñ¸ö307f8¸ÄΪÄãÓÎÏ·µÄ¾ä±ú¾Í¿ÉÒÔÁË Spy.exeÕâ¸öÈí¼þ¿ÉÒÔ×¥¾ä±ú
Private Sub Form_Load()
Dim hwnd As Long
hwnd = &H307F8 'XXXXX±íʾ¼Çʱ¾±à¼­¿òµÄ¾ä±ú
PostMessage hwnd, WM_KEYDOWN, VK_A, MakeKeyLparam(VK_A, WM_KEYDOWN) '°´ÏÂA¼ü
PostMessage hwnd, WM_CHAR, Asc("A"), MakeKeyLparam(VK_A, WM_KEYDOWN) 'ÊäÈë×Ö·ûA
PostMessage hwnd, WM_UP, VK_A, MakeKeyLparam(VK_A, WM_UP) 'ÊÍ·ÅA¼ü
End Sub
Ä£¿é´úÂ룺
Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ......

vb Ä£ÄâÊó±ê°´¼ü

 °ÑÊó±êÒƵ½ÆÁĻָ¶¨Î»Öà È磨111.111£© µ¥»÷Ò»ÏÂ
ÔÙÒƵ½ÆÁÄ»ÁíÒ»Ö¸¶¨Î»ÖÃÖ¸¶¨Î»Öà È磨222.222£©µ¥»÷Ò»ÏÂ
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Sub Command1_Click()
Timer1.Enabled = True
Timer2.Enabled = True
End Sub
Private Sub Form_Load()
Timer1.Interval = 1000
Timer2.Interval = 1000
Timer1.Enabled = False
Timer2.Enabled = False
End Sub
Private Sub Timer1_Timer()
Call SetCursorPos(111, 111) 'ÈÃÊó±êÒƶ¯µ½(111,111)
mouse_event MOUSEEVENTF_ABSOLUTE Or MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End Sub
Private Sub Timer2_Timer()
Call SetCursorPos(2222, 2222) 'ÈÃÊó±êÒƶ¯µ½(2222,2222)
mouse_event MOUSEEVENTF_ABSOLUTE Or MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVEN ......

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©
µÚÒ»Ìì
  ÎÒÈÏΪASP.NET±ÈASPÄѺܶ࣬ϣÍû´ó¼Ò×öºÃ×¼±¸¡£ÄÑÄÑÔÚʵÏÖͬһ¸öЧ¹ûÓкܶ෽·¨£¬´ó¼Ò»òÐí»áÒÉ»ó¡£Ê®Ììѧ»áϵÁн̳̻áÇåÎúµÄд³ö¸÷ÖÖ·½·¨£¬Èôó¼ÒÄÜÉÙÒ»µã¿²¿À¡£ÔÚASPÀïÃ棬´ó¼Ò¼¸ºõ¶¼ÊÇʹÓÃVB£¬Êý¾Ý¿âÂҲÎÞ·ÇÊÇSQLºÍACCESS¡£ÔÚASP.NETÀïÃ棬Êý¾Ý¿â»¹ÊÇÕâÁ½¸öµ«Êdz£ÓõÄÓïÑÔ¶àÁËÒ»¸öC#£¬Ò²ÊÇ΢ÈíÍƼöµÄÓïÑÔ£¬Îª.NETƽ̨¶¨ÖƵÄÓïÑÔ¡£ÕâÑùASP.NET¾ÍÓÐËÄÖÖ×éºÏ£ºVB+ACCESS£¬VB+SQL£¬C#+ACCESS£¬C#+SQL£¬±¾½Ì³Ì»áʹÓÃC#+ACCESS£¬¼æ¹ËËÄÖÖÀ´Ð´£¬Èôó¼Ò¶ÔASP.NETÓÐÒ»¸öÈ«ÃæµÄÈÏʶ¡£ËäȻ˵ѧϰASP.NET²»ÐèÒªÈκÎASP»ù´¡£¬µ«ÊÇÎÒ¾õµÃÈç¹û´ó¼ÒASP²»»á£¬»¹ÊÇÏÈ¿´Ò»Ï¡¾Ê®Ììѧ»áASP½Ì³Ì¡¿£¬´ó¼ÒËùÐèÒªÁ˽âµÄ²»ÊÇASPµÄ³ÌÐòÔõôд£¬¶øÊÇÔõô¹¹½¨·þÎñÆ÷£¬ÔõôʹÓÃHTML±íµ¥£¬Í¬Ê±¶ÔSQLÓï¾äÓÐÒ»¸ö»ù´¡ºÍÀí½â£¬ÒòΪÔÚ±¾ÎÄÀïÎÒ²»»á½«½«Ò»Ð©»ù´¡µÄ¶«Î÷¡£
·Ï»°²»¶à˵£¬¿ªÊ¼ÎÒÃǵÚÒ»ÌìµÄѧϰ£º
ѧϰĿµÄ£ºµ÷ÊÔ³ö°²×°»·¾³
    ÎÒÒªÉêÃ÷Ò»µã£¬²Ù×÷ϵͳ¾ÍÓÃ2000£¬Èç¹û˵Ҫѧϰһ¸öÍøÂçÓïÑÔ»¹²»¿Ï¶à×°Ò»¸ö²Ù×÷ϵͳµÄ»°£¬ÄÇÎÒ¿´Ò²²»ÒªÑ§Ï°ÁË¡£
    Ïȵ½ÍøÉÏÏÂÔØÒ»¸öMDAC(ÒªÊÇ2.7ÒÔÉϵİ汾²ÅÐÐ)£¬È»ºó°²×°£¬ ......

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©
µÚÒ»Ìì
  ÎÒÈÏΪASP.NET±ÈASPÄѺܶ࣬ϣÍû´ó¼Ò×öºÃ×¼±¸¡£ÄÑÄÑÔÚʵÏÖͬһ¸öЧ¹ûÓкܶ෽·¨£¬´ó¼Ò»òÐí»áÒÉ»ó¡£Ê®Ììѧ»áϵÁн̳̻áÇåÎúµÄд³ö¸÷ÖÖ·½·¨£¬Èôó¼ÒÄÜÉÙÒ»µã¿²¿À¡£ÔÚASPÀïÃ棬´ó¼Ò¼¸ºõ¶¼ÊÇʹÓÃVB£¬Êý¾Ý¿âÂҲÎÞ·ÇÊÇSQLºÍACCESS¡£ÔÚASP.NETÀïÃ棬Êý¾Ý¿â»¹ÊÇÕâÁ½¸öµ«Êdz£ÓõÄÓïÑÔ¶àÁËÒ»¸öC#£¬Ò²ÊÇ΢ÈíÍƼöµÄÓïÑÔ£¬Îª.NETƽ̨¶¨ÖƵÄÓïÑÔ¡£ÕâÑùASP.NET¾ÍÓÐËÄÖÖ×éºÏ£ºVB+ACCESS£¬VB+SQL£¬C#+ACCESS£¬C#+SQL£¬±¾½Ì³Ì»áʹÓÃC#+ACCESS£¬¼æ¹ËËÄÖÖÀ´Ð´£¬Èôó¼Ò¶ÔASP.NETÓÐÒ»¸öÈ«ÃæµÄÈÏʶ¡£ËäȻ˵ѧϰASP.NET²»ÐèÒªÈκÎASP»ù´¡£¬µ«ÊÇÎÒ¾õµÃÈç¹û´ó¼ÒASP²»»á£¬»¹ÊÇÏÈ¿´Ò»Ï¡¾Ê®Ììѧ»áASP½Ì³Ì¡¿£¬´ó¼ÒËùÐèÒªÁ˽âµÄ²»ÊÇASPµÄ³ÌÐòÔõôд£¬¶øÊÇÔõô¹¹½¨·þÎñÆ÷£¬ÔõôʹÓÃHTML±íµ¥£¬Í¬Ê±¶ÔSQLÓï¾äÓÐÒ»¸ö»ù´¡ºÍÀí½â£¬ÒòΪÔÚ±¾ÎÄÀïÎÒ²»»á½«½«Ò»Ð©»ù´¡µÄ¶«Î÷¡£
·Ï»°²»¶à˵£¬¿ªÊ¼ÎÒÃǵÚÒ»ÌìµÄѧϰ£º
ѧϰĿµÄ£ºµ÷ÊÔ³ö°²×°»·¾³
    ÎÒÒªÉêÃ÷Ò»µã£¬²Ù×÷ϵͳ¾ÍÓÃ2000£¬Èç¹û˵Ҫѧϰһ¸öÍøÂçÓïÑÔ»¹²»¿Ï¶à×°Ò»¸ö²Ù×÷ϵͳµÄ»°£¬ÄÇÎÒ¿´Ò²²»ÒªÑ§Ï°ÁË¡£
    Ïȵ½ÍøÉÏÏÂÔØÒ»¸öMDAC(ÒªÊÇ2.7ÒÔÉϵİ汾²ÅÐÐ)£¬È»ºó°²×°£¬ ......

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©

Ê®Ììѧ»áASP.net֮ʵսϵÁУ¨C#ºÍVb.netË«°æ±¾£©
µÚÒ»Ìì
  ÎÒÈÏΪASP.NET±ÈASPÄѺܶ࣬ϣÍû´ó¼Ò×öºÃ×¼±¸¡£ÄÑÄÑÔÚʵÏÖͬһ¸öЧ¹ûÓкܶ෽·¨£¬´ó¼Ò»òÐí»áÒÉ»ó¡£Ê®Ììѧ»áϵÁн̳̻áÇåÎúµÄд³ö¸÷ÖÖ·½·¨£¬Èôó¼ÒÄÜÉÙÒ»µã¿²¿À¡£ÔÚASPÀïÃ棬´ó¼Ò¼¸ºõ¶¼ÊÇʹÓÃVB£¬Êý¾Ý¿âÂҲÎÞ·ÇÊÇSQLºÍACCESS¡£ÔÚASP.NETÀïÃ棬Êý¾Ý¿â»¹ÊÇÕâÁ½¸öµ«Êdz£ÓõÄÓïÑÔ¶àÁËÒ»¸öC#£¬Ò²ÊÇ΢ÈíÍƼöµÄÓïÑÔ£¬Îª.NETƽ̨¶¨ÖƵÄÓïÑÔ¡£ÕâÑùASP.NET¾ÍÓÐËÄÖÖ×éºÏ£ºVB+ACCESS£¬VB+SQL£¬C#+ACCESS£¬C#+SQL£¬±¾½Ì³Ì»áʹÓÃC#+ACCESS£¬¼æ¹ËËÄÖÖÀ´Ð´£¬Èôó¼Ò¶ÔASP.NETÓÐÒ»¸öÈ«ÃæµÄÈÏʶ¡£ËäȻ˵ѧϰASP.NET²»ÐèÒªÈκÎASP»ù´¡£¬µ«ÊÇÎÒ¾õµÃÈç¹û´ó¼ÒASP²»»á£¬»¹ÊÇÏÈ¿´Ò»Ï¡¾Ê®Ììѧ»áASP½Ì³Ì¡¿£¬´ó¼ÒËùÐèÒªÁ˽âµÄ²»ÊÇASPµÄ³ÌÐòÔõôд£¬¶øÊÇÔõô¹¹½¨·þÎñÆ÷£¬ÔõôʹÓÃHTML±íµ¥£¬Í¬Ê±¶ÔSQLÓï¾äÓÐÒ»¸ö»ù´¡ºÍÀí½â£¬ÒòΪÔÚ±¾ÎÄÀïÎÒ²»»á½«½«Ò»Ð©»ù´¡µÄ¶«Î÷¡£
·Ï»°²»¶à˵£¬¿ªÊ¼ÎÒÃǵÚÒ»ÌìµÄѧϰ£º
ѧϰĿµÄ£ºµ÷ÊÔ³ö°²×°»·¾³
    ÎÒÒªÉêÃ÷Ò»µã£¬²Ù×÷ϵͳ¾ÍÓÃ2000£¬Èç¹û˵Ҫѧϰһ¸öÍøÂçÓïÑÔ»¹²»¿Ï¶à×°Ò»¸ö²Ù×÷ϵͳµÄ»°£¬ÄÇÎÒ¿´Ò²²»ÒªÑ§Ï°ÁË¡£
    Ïȵ½ÍøÉÏÏÂÔØÒ»¸öMDAC(ÒªÊÇ2.7ÒÔÉϵİ汾²ÅÐÐ)£¬È»ºó°²×°£¬ ......

¹ØÓÚVBµÄListBox¿Ø¼þÑ¡¶¨ÏîµÄ»ñÈ¡

 ½ñÌìÔÚ×öVBÏîÄ¿µÄʱºò£¬Ê¹ÓÃÁËListBox¿Ø¼þÀ´»ñȡһЩÁбíÏÓÃÁ˲ŷ¢ÏÖûÓÐListViewºÃÓã¬ListViewÓÐItems£¨SelectItem£©¿ÉÒÔ¶¨Î»µ½µ±Ç°µÄÑ¡ÖÐÏ¶øListBoxûÓУ»ListViewÓÐTag¿ÉÒÔÉ趨ѡÖÐÏîµÄ±êʾ£¬ListBoxûÓС£ÉÏÍøÒ²ÕÒ²»µ½Ô­Òò£¬ÖªµÀÈ¥ÔĶÁMSDNºÍ×Ô¼º²âÊÔ¡£
Ö®ºóÖÕÓÚÕÒµ½ÁËÎÊÌâµÄ¹Ø¼ü¡£
ʼþ1£ºÌí¼ÓListBoxÏîºÍ¶ÔÓ¦ÏîµÄ±êʶ
Dim List1 As new ListBox
List1.addItem , , ÐÇÆÚÒ»
List1.ItemData(List1.newIndex) = "1"
List1.addItem , , ÐÇÆÚ¶þ
List1.ItemData(List1.newIndex) = "2"
List1.addItem , , ÐÇÆÚÈý
List1.ItemData(List1.newIndex) = "3"
List1.addItem , , ÐÇÆÚËÄ
List1.ItemData(List1.newIndex) = "4"
Private Sub List1_Click() 
    If List1.ListIndex = -1 Then
         Exit Sub             'ûÓÐÑ¡ÖÐÈκÎÏÍ˳ö·½·¨
    End If
    Debug.Print List1.ItemData(List1.ListIndex)      '´òÓ¡Ñ¡ÖеÄList1µÄ±êʶ¡£¡£¿ÉÄÜÊÇ"1" "2" " ......
×ܼǼÊý:380; ×ÜÒ³Êý:64; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [47] [48] [49] [50] 51 [52] [53] [54] [55] [56]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ