ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ªí³æ_listbox¿ï¶µ

[µo°Ý] ªí³æ_listbox¿ï¶µ

¥»©«³Ì«á¥Ñ solely ©ó 2011-6-5 22:17 ½s¿è


¦p¹Ï©Ò¥Ü
½Ð°Ý­n¦p¦ó³]©w¡A¤~¯à¦b¿ï¨úªº¸ê®Æ¶Ç¦Ütextbox¤§«á
®ø°£listbox¤ÏÂŪº²{¶H?
¨ä¦¸¬O¡A·í¸ê®ÆÂà¦Ütextbox¬°¤°»ò²Ä¤@¦C¬OªÅ¥Õ¦C
¦³¤èªk¥i¥H®ø°£ªÅ¥Õ¦C¶Ü?
[attach]2880[/attach]

  1. Private Sub CommandButton1_Click()

  2.   With aa.ListBox1
  3.     For e = 0 To .ListCount - 1
  4.       If .Selected(e) = True Then
  5.       
  6.         If EhStr = "" Then
  7.            EhStr = .List(e)
  8.         Else
  9.           EhStr = EhStr & vbCrLf & .List(e)
  10.         End If
  11.         
  12.       .Selected(e) = False
  13.       
  14.       End If
  15.       
  16.     Next
  17.    
  18.     aa.TextBox1 = EhStr
  19.     [b2] = EhStr
  20.    
  21.   End With
  22. End Sub
½Æ»s¥N½X
¬O¾Çµ{¦¡¦Ó¤£¬O­nµ{¦¡¡A¬O¶i¨Bªº°ò¦

TOP

For e = 0 To .ListCount - 1
If .Selected(e) = True Then
If Ehstr = "" Then
Ehstr = .List(e)
Else
Ehstr = Ehstr & vbCrLf & .List(e)
End If
End If
Next
aa.TextBox1 = Ehstr

TOP

«x¡A¤@¼Ò¤@¼Ëªº¥N½X¤Î®É¶¡¡A¯u¬O¦³§Ó¤@¦P¡C

TOP

¨þ¨þ¡Aoobird¤j¤j...§ÚÁÙ¬O¦³«Ü¦h­n¦V±z¾Ç²ßªº
¬O¾Çµ{¦¡¦Ó¤£¬O­nµ{¦¡¡A¬O¶i¨Bªº°ò¦

TOP

«x¡A¤@¼Ò¤@¼Ëªº¥N½X¤Î®É¶¡¡A¯u¬O¦³§Ó¤@¦P¡C
oobird µoªí©ó 2010-9-27 10:20

¼Ó¥D¦³»¡:   ¦p¦ó³]©w¡A¤~¯à¦b¿ï¨úªº¸ê®Æ¶Ç¦Ütextbox¤§«á ®ø°£listbox¤ÏÂŪº²{¶H?
oobird «e½ú§A¤Ö¤F       .Selected(e) = False

TOP

·PÁ¦U¦ì~
(§Ú§âSelected(e) = FalseÂ\¿ù¦a¤è¤FXDD)

TOP

        ÀR«ä¦Û¦b : µoµÊ®ð¬Oµu¼ÈªºµoºÆ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD