Tab Control (With No Tabs)

Started by jthompson, November 10, 2006, 02:25:19 AM

Previous topic - Next topic

jthompson

It might have been Visual Basic 6, but I thought you could display a tab control with no tabs (you could change tabs via code).  I heard this is how they make a lot of dialogs with different tab pages in the middle and <back>, <next>, and <finish> buttons at the bottom.  Does anyone else know what I'm talking about?  Is this a tab control option?  Thanks!  -John


TechSupport

You can display a tab control with no pages (simply delete the three default pages that FireFly creates via the "Custom" property for the tab control). However, as Rudolf has pointed out, the best way to handle your problem is to create a child form for each of the pages that you need to dicplay. As you click on your navigation buttons simply write code in the BTN_CLICKED message handlers to show/hide the appropriate child form. This is actually quite easy to do and I use it all the time in most of my applications.

jthompson

Very, very cool.  Thank you Rudolph and Paul!

jthompson

In frmMain, the size of the frame where the three children forms are displayed is 248 x 430.  I tried making one of the forms 248 x 430 but it was too big to completely fit in the frame.  Do the children forms have anything extra I need to take into account when trying to make a form that will completely fit the parent's space?  Thanks again!  -John