hi!
i want ot know that how can i check at run-time that if my specific control is present then i'll unload it
otherwise i can receive number of controls on my form at run-time but i cant get their names from which i can unload them
so any help!
Printable View
hi!
i want ot know that how can i check at run-time that if my specific control is present then i'll unload it
otherwise i can receive number of controls on my form at run-time but i cant get their names from which i can unload them
so any help!
So you want to count how many controls are on your form ?
VB Code:
Private Sub Command1_Click() Dim tx As Variant MsgBox Form1.Controls.Count For Each tx In Form1.Controls MsgBox tx.Name Next End Sub
this should help u... count and properties...
heh you beat me to it :)Quote:
Originally posted by khalik
VB Code:
Private Sub Command1_Click() Dim tx As Variant MsgBox Form1.Controls.Count For Each tx In Form1.Controls MsgBox tx.Name Next End Sub
this should help u... count and properties...
VB Code:
Private Sub Form_Load() Dim x As Object For Each x In Form1.Controls MsgBox x.Name Next End Sub
:D ;)Quote:
Originally posted by plenderj
heh you beat me to it :)
VB Code:
Private Sub Form_Load() Dim x As Object For Each x In Form1.Controls MsgBox x.Name Next End Sub