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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSTAB adding controls at runtime

Status
Not open for further replies.

rwarner

Programmer
Mar 18, 2001
2
GB
I have a form where I am creating controls at runtime. I wish to add a frame to a sstab control and am using the following code.

frmMain.Controls.Add "threed.ssframe", "frame1", tab2

which adds to the first tab of the sstab control,

How do I get the control onto a different tab?
 
Have you tried to set the .Container property?
Code:
Set frame1.Container = tab2
The book only mentions that frames and pictureboxes can be containers, so I'm not sure if this will work...
~Melissa
 
See thread222-63823 and vote for Eric! It is the WAY to GO.!!!


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Sorry Michael but the thread222-63823 dosen't solve the issue. I can create controls at run-time but only on tab0.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top