![]() |
|
TabControl - Hidden Headers | Structure your Form - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: TabControl - Hidden Headers | Structure your Form (/Thread-TabControl-Hidden-Headers-Structure-your-Form) Pages:
1
2
|
TabControl - Hidden Headers | Structure your Form - Madara-Uchiha - 08-14-2013 TabControl - Hide Headers Hello guys and thank you for checking out this very quick tutorial.
Here you can learn how to hide the Headers in a TabControl. This is very useful if you create a Builder for a RAT for example, and you like to structure the Settings over multiple pages. The user don't have to click the little TabControl-Header, you can switch the TabPages easiely by a way you like to (Buttons, ListBox etc). Lets get started. 1) Create a new Windows Forms Application. 2) Drag a TabControl on you form and add as many pages as you like. In this tutorial I use 3. When you are done it should look like this: ![]() 3) As you can see, the normal TabControl has those TabHeaders to switch between you pages. Now give every TabPage a different color or add some controls so we can later see the TabSwitch ![]() If you are done, it should look similar to this: ![]() 4)Now for the Coding Part. Doubleclick your form to get in the form load event. There you paste this code: ![]() This will hide the TabControlheaders at runtime, but still show them in the IDE for easy editing/designing. 5) Now we can think how we like to show every TabPage. You can use ListBox Items, TreeView nodes etc. But in this simple tutorial I am going to use Buttons. So add 3 Buttons below our TabControl 6) In the buttons, just paste this code: ![]() The TabIndex starts at 0, so the first TabPage has Index 0, The second TabPage has 1 and the Third TabPage has 2. 7) You are done. It should now look like this: ![]() As you can see the TabHeaders are hidden. I hope you liked this very small tutorial ![]() by Madara-Uchiha
RE: TabControl - Hidden Headers | Structure your Form - -Correct - 08-14-2013 Great tutorial, good job man!! Thanks for sharing it
RE: TabControl - Hidden Headers | Structure your Form - Shebang - 08-14-2013 Didn't think of doing this, thanks for the share! RE: TabControl - Hidden Headers | Structure your Form - ViolentReality - 08-14-2013 Nicely structured tutorial man, I've done something like this before. However, I made a layout in photoshop and had buttons and panels posing as my TabControl. :> RE: TabControl - Hidden Headers | Structure your Form - idb - 08-21-2013 (08-14-2013, 08:47 PM)ViolentReality Wrote: Nicely structured tutorial man, I've done something like this before. Exactly what I would have done. I don't exactly see the point of using a TabControl component when you aren't using the main part of it... the tabs. Do you have a need for a TabPages collection or something? RE: TabControl - Hidden Headers | Structure your Form - Eternity - 08-21-2013 I don't really see what's so grear about this except using it for themes. Good work tho. - sent from android RE: TabControl - Hidden Headers | Structure your Form - loyalty - 08-21-2013 why use a For Each when there is only one item in the Array? besides all of these properties can be set via designer. RE: TabControl - Hidden Headers | Structure your Form - idb - 08-21-2013 Also don't need 3 separate Click handlers for those buttons either. All of that should be handled in 1 method by checking the sender parameters value. RE: TabControl - Hidden Headers | Structure your Form - Xanii - 08-21-2013 So you are just making buttons to switch tabs? I don't really see a point to doing this besides a few choice instances. RE: TabControl - Hidden Headers | Structure your Form - Platinum - 08-22-2013 I think this can be handy for ANY application! Good job on this :O |