Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¼±£¬°ïæ°ÑÒ»¶ÎdelphiµÄ´úÂë¸Ä³ÉVB.NETµÄ

Delphi(Pascal) code:

for I := 0 to ListBox1.Items.Count -1 do
begin
if ListBox1.Selected[I] then ListSelectItem := I;
ListBox1.Selected[I] := False;
end;
ListBox1.Selected[ListSelectItem] := True;



VB.NET code:

for I = 0 to ListBox1.Items.Count -1 do
if ListBox1.Selected[I] is True then ListSelectItem = I
else
ListBox1.Selected[I] = False
end if
end for
ListBox1.Selected[ListSelectItem] = True




ListBox1ÕâÊǸöListBox£¬ÎÒ²»ÖªµÀÔÚDϵÄSelectedÕâ¸öÊôÐÔÔÚVB.NETÏÂÓÐûÓÐ

ListBox1.SelectedIndex = 0 'Ñ¡ÖеÚÒ»Ïî
str = ListBox1.SelectedItem 'µ±Ç°Ñ¡¶¨Ïî

ʵ¼ÊÉÏÎÒÊÇÏëʵÏÖµ±ÎÒµã»÷ListBox¿Õ°×´¦µÄʱºò£¬ÄÜÈÃListBoxÑ¡ÖÐ״̬¶¼±ä³ÉδѡÖÐ״̬¡£Ä¬ÈϵÄÇé¿öϵã»÷¿Õ°×µÄµØ·½£¬ÉÏÒ»´ÎÑ¡ÖеÄÐÐÊý»¹ÊÇÓÐÀ¶µ×µÄ¡£
ÉÏÃæÎҵĴúÂëÔÚDÏÂÊÇͨ¹ýµÄ£¬ÊÇ¿ÉÒÔʵÏÖÎÒËùÒªµÄ½á¹û£¬µ«ÔÚVB.Net²»ÖªµÀÓ¦¸ÃÔõôд

ListBox1.SelectedIndex=-1ÊÔÊÔ

ÕâÑùºÃÏó²»Ðеġ£ËäÈ»¿ÉÄÜÕâʱºòListBoxÊÇûѡÖÐÄÇÒ»ÐУ¬µ«ÊÇÄÇÒ»Ðл¹ÊÇÀ¶µ×µÄ£¬ÎÒ²»ÏëÏÔʾÕâÀ¶µ×

ÄÄλ°ïæһÏÂÄØ£¿ÎÒ²»»áVB.NET¡£·Ö²»¹»¿ÉÒÔÔÙ¼Ó

ÒýÓÃ
ListBox1ÕâÊǸöListBox£¬ÎÒ²»ÖªµÀÔÚDϵÄSelectedÕâ¸öÊôÐÔÔÚVB.NETÏÂÓÐûÓÐ


ÓÐÕâ¸öÊôÐÔµÄ

for I = 0 to List


Ïà¹ØÎÊ´ð£º

ÇëºÃÐÄÈË°ïÎÒ°ÑVBÔ´ÂëתΪVB.NET~

Ï£Íû´ó¼ÒÄܹ»°ïÎÒÏÂ.¸ÐлÁË..


Ô´Âë´«ÔÚ´óÃ×ÅÌ VB6 µÄÔ´Âë http://www.damipan.com/file/3wNoKLW.html

תΪVB.NETÔ´Âë.

СµÜÍêÈ«ÊÇÐÂÊÖ ²»¶®µÄ˵.Âé·³¸÷λ°ïæһÏÂ

ÎÒµÄEMAILÊÇ:4452 ......

vbÓëxmlÎÊÌâ

vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃXML½âÎöÊý¾Ý¿âµÄ×Ö¶ÎÖµ£¬³ý·ÇÊý¾Ý¿âÖб£´æµÄÊÇXML¸ñʽµÄ×Ö·û´®Îĵµ¡£

XMLÓÃÀ´Õ¹Ê¾²ã´ÎµÄÊý¾Ý¡£
Êý¾Ý¿âÒ»°ãÊǶþάÊý¾Ý¡£

Êý¾Ý¿âÖб£´æµÄÊÇXML×Ö·û´®¸ñʽ£ ......

VBÖÐÔõôÑùÔÚ±í¸ñÖÐÐÞ¸Ä×ÖÌ壿 - VB / »ù´¡Àà

±ÈÈç˵ҪÔÚ1±íÖеĵÚÈýÁеڶþÐе¥ÔªÖÐÊäÈë¡°Ò»¶þÈý¡±Ò»Òª´ÖÌåËÎÌå12ºÅ×Ö£¬¶þ ²»Òª´ÖÌå 15ºÅ×Ö ÈýбÌå5ºÅ×Ö
´úÂëÓ¦¸ÃÔõô´ò£¿
LZÖ¸µÄÊǸöʲô±í¸ñ¿Ø¼þÄØ£¬Ã²ËÆÖ»ÄÜÉèÖÃÕû¸ö±íµÄ×ÖÌ壬»òÕßij¼¸Ðлò¼¸ÁУ¬Ã»Óе¥¶ÀÉèÖ ......

vb²åÈëÊý¾Ý¿âÖظ´ÖµÎÊÌâ

ÔÚvbÖÐÔõôÅжϣ¬²åÈëµ½Êý¾Ý¿âÖеÄÖµÊÇÖظ´µÄ£¬±¾È˲ŸսӴ¥VBÓïÑÔ£¬ÉõÊÇÓкöàµØ·½»¹²»¶®£¬»¹Çë¸÷λ´óÏÀÃǸø³ö´úÂ룬ллÁËѽ£¡£¡£¡
²åÈë֮ǰselectһϰ¢¡£
»òÕßдһ¸ö×éºÏSQL²åÈëÓï¾ä£¬ÀýÈç
IF not Exist(
& ......

ÊìϤVBµÄ½øÀ´£¬ÓÐÏîÄ¿


ÓÐûÓк¼ÖݵÄÅóÓÑ£¬ÊìϤVBµÄ£¬ÓÐÐËȤ×öµÄ»°ÁôÏÂÁªÏµ·½Ê½
VB6 OR VB.NET?
¿Éϧ²»ÔÚº¼ÖÝ,遠³Ì¿É·ñ?

ÐǪ̈ÁªÏµ·½Ê½ÄØ

ÎÒÒ²ÁªÏµÒ»Ï£¬²»¹ýÔÚÄþ²¨

¿ÉϧÎÒÒ²²»ÔÚº¼ÖÝ

±±¾©µÄÐв»£¿

ÎÒÔÚËÕÖÝ£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ