Hi everyone! I would like to know how would i generate items in a listbox (e.g) timer_tick,listbox would add item from a textbox with a text in it but at the same time it adds number at the end of that text (e.g) myname01 myname02 myname03 and so forth. Any help would be appreciated. thanksHow do i generate same name in vb with different numbers at the end?
Supply the objects: Listbox named LIST and textbox named TEXTBOX.. and a command button CMD... and Label named COUNT here is the code.
-----------------
Private Sub Form_Load()
COUNT.Visible = False
COUNT.Caption = ';1';
End Sub
-----------------
Private Sub CMD_CLICK()
LIST.AddItem TEXTBOX.Text %26amp; COUNT.Caption
COUNT.Caption = COUNT.Caption + 1
End Sub..
thanks...
Dilip Raj Baral
No comments:
Post a Comment