|
-
Mar 30th, 2000, 02:27 AM
#1
Thread Starter
New Member
Always put a control on a form. But now I want to put a control on a tab instead of form. Does anyone know how to do it?
Thanks
-
Mar 30th, 2000, 02:52 AM
#2
Lively Member
Sure, if you use the basic tab strip, all you have to do is make as many picture boxes as tabs, and put your controls on the picture boxes themselves. Then make it so when you click a tab, it makes all the picture boxes invisible except for the one that corresponds to the right tab. You can put the picture boxes' borders to 0 if you want it to look right.
-
Mar 30th, 2000, 07:27 PM
#3
Hyperactive Member
No pictureboxes needed
The tabstrip is somewhat confusing to work with since you have to make all the controls thats not "on" the selected tab invisible. (And I always used frames when I worked with the tab-control, instead of pictureboxes.)
My suggestion instead is to use the "microsoft tabbed dialog" SSTAB. Here all you have to do is draw the controls on the tab you want them to be on. It is as easy as to draw a control on the form.
But don't forget, dont draw the control on the form and then drag it to the SSTAB. If you do so the control you created will be placed "above" the SSTAB and will be visible on every tab since it's not a part of the tabcontrol. SHould this occur just cut/paste the control to the apropriate tab.
Good luck
Onerrorgoto
Dont be to optimistic, the light at the end of the tunnel might be a train
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|