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!

Button from first tab appearing on second tab? 2

Status
Not open for further replies.

VoodooRage

Programmer
Oct 9, 2002
43
US
I have an application with a tab control. I have placed a button on the first tab to preview a report. The button is appearing on the second tap of my TabCntl when I switch tabs. I do not know how this came about but how do I fix it?

Thanks bunches as always!
 
The button is probably not on the Tab page, but is rather on the form.

The fix is to Cut the button off of the main form, then Paste it back onto the first tab page.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Not to devalue what CajunCenturion is saying, but I had that problem alot and discontinued using Tab Controls for a long time because they were such a pain. I discovered just this past Monday that you cut the button, click on the tab, and make sure the TAB NAME has dots in a square around it showing it has been selected. Then, go somewhere over the form and Paste. Good luck. JL
 
VoodooRage

...or the tab control object.

To select a tab, and not the entire control, select the tab label at the top of the tab page object. (You know, the thingy a mee jig that sticks up at the top)

To confirn you have select the tab page object and not the entire tab control object. Make sure you have the property window open and select the "Other" tab in the property window. You should see the "name" of the tab, say Page1, Page2. If you see the name of the tab form object such as TabCtl, then you have selected the wrong thing.

By the way, and you probably already know this, you can change the name of the tab page by changing the value in the Name field. Ex: Page1 -> Address, Page2 -> TabbyCats, Page3 -> BarTab

... Man, this is complicated with all these "tabs". I think I will go home and pull the tab off a beer ;-)

Richard
 
Yes, I had not insured that the specific tab was selected? I was able to cut and paste it back onto the first tab.

Thanks everyone for your help. This site ROCKS SO HARD! Just like MoJo JoJo would say!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top