Hi again
Thanks for the reply.
I have it working well...however, now I want to access individual objects on
each form from a Master form.
I was able to use an array to create the forms, then create a loop to
position each form in order.
Interestingly, I was unable to use "f.count-1" as the higher loop number.
For example:
Dim f(4) As New Form1
For xx = 1 To UBound(f()) 'cant use f.count-1
f(xx).Left = 0
f(xx).Top = f(xx - 1).Top + f(xx - 1).Height
'etc
Next xx
Now, I want to access the objects on each form at will.
However, the problem is that I cannot access the form(s), because they are
in an array, and I cannot seem to use an index to point to the correct form.
Conceptually, it should be like:
f(Index).command1(Index2).backcolor = vbred '2 indexes, the command1 button
is an array
I need to control the command button from another form.
Any ideas?
Thanks very much in advance.
> What do you mean re-use a form?
> Do you want to use a form as an object to create multiple instances?
> If yes then see this.
> e.g I have a Form1 in my project
>
> dim objFrm as New Form1
> objFrm.show
>
> dim objFrm2 as new Form1
> objFrm.show
>
> This way you can have two copies of the same form.
>
> Waqas.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [email protected]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/