简体   繁体   中英

Extension of a Windows Form and make it part of Visual Studio

If I search around in the Visual Studio Express Toolbox I find the TabControl and Tab. I want to extend the Tab so that I can give it a few standard features instead of doing it again and again for every time I add a new default tab.

In NetBeans (Java) you can extend any Swing Component, and then drag it into the GUI Builder for continuous usage.

How would I do this in VS Express 2012? It doesn't seem like I can.

If I make a class that extends Tab, I can't seem to drag it into the Toolbox. Do I just have to make a new "Custom Control"/"User Control" class like the C# Wizard gives me the ability to do, and it will take care of the rest? I am a bit new to C# and the VS Express IDE.

Yes, the "User Control" is the solution.

just create a new "user control" and add the Tab control in it then you'll find it appear into the tools box automatically.

then you can change the properties as you want.

Regards,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM