Results 1 to 3 of 3

Thread: How to put a control on a tab?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    3
    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

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    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.
    Vuen

  3. #3
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    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
  •  



Click Here to Expand Forum to Full Width