BP Forums
Custom tab control help and making controls - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+---- Thread: Custom tab control help and making controls (/showthread.php?tid=683)



Custom tab control help and making controls - Derek275 - 10-25-2012

I'm fairly new to the Visual Basic language, and even newer to making controls controls. I followed Brandino's instructions on making your own version of controls and making .dlls.

What my issue is, is I tried to make a class library (seperate from a project) and tried to do Inherits TabControl. It didn't work like a class built in a project, however. Do I have to use something like 'Inherits System.Blah.TabControk'? How would that work?

Also, how could I make them look like the Google Chrome tabs?

Thanks for any if you who help.


Re: Custom tab control help and making controls - Derek275 - 10-25-2012

Also, sorry if the question was hard to understand...


Re: Custom tab control help and making controls - Ecnarf - 10-25-2012

What you would like to do can be done with coding a theme. A theme is probably a lot more advanced than you think and people spend hours upon hours creating them, sometimes even days. You could make your own by getting "Aeonhack's theme base" you can find this on Google or HackForums. From there add a class to your project and make a region to contain the theme base. Minimize the region so it doesnt get in your way, then you could make a new line that contains this bellow it:

Class CustomTabControl

Inherits TabControl154

End Class

and from their its probably a couple hundred lines to make a really nice tab control. I am working on one at the moment that is animated and slides and it has around 300 lines... So you have your work cut out for you I guess. If you dont wanna do that you could always use the default components.


Re: Custom tab control help and making controls - xolara - 10-26-2012

<!-- m --><a class="postlink" href="http://dotnetrix.co.uk/tabcontrol.htm">http://dotnetrix.co.uk/tabcontrol.htm</a><!-- m -->

on the link above can help you achieve it But i think you will have to re-do the coding in order to get it like gchrome


Re: Custom tab control help and making controls - Snake_eyes - 11-16-2012

To answer your original question you have to add a refrerence to System.Windows.Forms and then you can inherit the tab control

As for making it look like Google Chrome... well just folow the posts above from Xolara and Ecnarf