|
-
May 2nd, 2002, 05:15 AM
#1
Thread Starter
Frenzied Member
-
May 2nd, 2002, 05:22 AM
#2
Hyperactive Member
I tested this and it worked. Make sure you put that code in the validation or lost focus event.
-Show me on the doll where the music touched you.
-
May 2nd, 2002, 05:25 AM
#3
This will place the FIRST item in the ComBoBox as Formated TEXT.
VB Code:
Private Sub Command1_Click()
Combo1.Text = Format(Combo1.List(0), "000000")
End Sub
-
May 2nd, 2002, 05:28 AM
#4
This works too
VB Code:
Private Sub Form_Load()
Combo1.Text = "1"
End Sub
Private Sub Command1_Click()
Combo1.Text = Format(Combo1.Text, "000000")
End Sub
But, ur not ADDING these Item (If u want to ADD us .AddItem)
-
May 2nd, 2002, 05:29 AM
#5
Hyperactive Member
Use this code
VB Code:
Dim i As Integer
For i = 0 To Combo1.ListCount
Combo1.List(i) = Format(Combo1.List(i), "00000")
Next
-Show me on the doll where the music touched you.
-
May 2nd, 2002, 05:37 AM
#6
Originally posted by Ambivalentiowa
For i = 0 To Combo1.ListCount -1
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
|