Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a frame as an object

Status
Not open for further replies.

Genotix

Programmer
Dec 16, 2004
53
0
0
NL
Hi All,

I would like to use the frame as an object.
I'd like to create an instance of it.

Something like :

Code:
Public FRM1 As New Frame
Public FRM2 As New Frame

FRM1.Visible = True
FRM2.Visible = True

Can someone help me with this?
Thanx!!

Linux IS userfriendly.
It's only very selective about who it's friends are.
 
You could place a frame on a form, hide it (i.e. set Visible to False) and give it an index of 0, making a control array. Then you can create new frames in the control array as needed.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Does that help me when I want a new, unique frame to be created every time I click a button?

Linux IS userfriendly.
It's only very selective about who it's friends are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top