control array

anomaly
10-07-2001, 07:22 PM
ok, when I click on a menu it creates a button of the same name on a toolbar to allow the user to show and hide the window ( like on mirc, icq, ect... ) im having problems making it hide the appropriate window. something like....

If Check1(x).Caption = "Status" Then
If Status.Visible = True Then
Status.Hide
Else
Status.Show
End If
End if

anyone know how I can get around this problem?

Ok....it's basically visual, what about the rest?

Volte
10-07-2001, 07:34 PM
try changing Check1(x) to Check1(index). I'd have to see where in the code it's located to really help you.

If at first, you don't succed, call it version 1.0.

Yoda
10-08-2001, 01:54 AM
Note that 'status' here can't be the caprion of your form, but the NAME of your form.
Therefore you would have to declare your 'status' object as follows :
<font color=blue>Dim</font color=blue> Status <font color=blue>As Form</font color=blue>



<font color=green>Do or do not
There is no try</font color=green>

anomaly
10-08-2001, 10:11 AM
that fixed it people, heh. thanks once again for the help.

Ok....it's basically visual, what about the rest?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum