TabControl and TabPage

M

Maileen

Hi,

Few weeks ago, i asked how to do a tabpage where we don't see the button on the top...
in fact, i needed only to show the tabpages without showing the tabpage button (for design purpose)

the solution was to make the button height close to zero...

is it still the only one solution or exist another one ?

thanks a lot,
Alain
 
H

Herfried K. Wagner [MVP]

Maileen said:
Few weeks ago, i asked how to do a tabpage where we don't see the button
on the top...
in fact, i needed only to show the tabpages without showing the tabpage
button (for design purpose)

the solution was to make the button height close to zero...

is it still the only one solution or exist another one ?

Removing a tabcontrol's tabpage headers
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tabcontrolremoveheaders&lang=en>
 
M

Maileen

thanks a lot,

but how to use it ?

shouldi create a component, or include it as *.vb file ?
please, detail use,
thanks,
Maileen
 
M

Mick Doherty

Option 1:
Add the code as a vb file and rebuild the project.
Right click the toolbox and select "Add/Remove Items..."
Make sure the ".net components" tab is selected and browse to the bin
folder of your project.
Double click your projects exe file and click OK.
PanelManager should now be sitting in your toolbox ready for use.

Option 2:
Add a new UserControl called PanelManager to your project.
Add the Controls Namespace, as in the code, but no other code yet.
Open the user control in design mode and rebuild the project.
You should now have a "My UserControls" tab in your toolbox which
contains the usercontrol.
Close the usercontrol designer.
Clear the code from the usercontrol and replace it with the code from
the site.
Rebuild the project.
Open your forms designer and drop a PanelManager on to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top