|
-
Oct 7th, 2000, 11:36 AM
#1
Thread Starter
Addicted Member
Hi, i am not the best in VB, could someone please help me with this problem:
I want to drag and drop selected text from a textbox or listbox, into a combo box. Please Help :-)
Mikelo
-
Oct 7th, 2000, 11:57 AM
#2
Thread Starter
Addicted Member
ME!
-
Oct 7th, 2000, 12:02 PM
#3
Frenzied Member
Hey take it easy man!!!!
It were just
Code:
Dim d1 As Date, d2 As Date
Private Sub Form_Load()
d1 = "10-07-2000 01:36 PM"
d2 = "10-07-2000 01:57 PM"
MsgBox DateDiff("n", d1, d2)
End Sub
= 21 minutes after you posted your second post....
Patience my boy...
In the meantime, look at VbNet: http://www.mvps.org/vbnet/
You'll probably find something there.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 7th, 2000, 12:16 PM
#4
Frenzied Member
Got it for ya!
Code:
Private Sub Combo1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
For X = 0 To List1.ListCount - 1
If List1.Selected(X) = True Then
Combo1.AddItem List1.List(X)
End If
Next X
Combo1.Text = Combo1.List(0)
End Sub
Private Sub Form_Load()
List1.OLEDragMode = 1
Combo1.OLEDropMode = 1
'Populate the list box
For i = 0 To 20
List1.AddItem i
Next i
End Sub
Happy Now?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 7th, 2000, 12:29 PM
#5
Thread Starter
Addicted Member
Code
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|