Can I create a Custom Tab Page in c#?

AWS

Staff member
Jan 10, 2007
Florida
I've seen examples of custom tab controls online, but I want to be able to create custom tab pages, that could be added in at run-time. (For instance, a plugin to my app adds 1-2 tabs to my main tab control.)

So far I have some code, but it doesn't display much in the designer:

using System
using System.Collections.Generic
using System.ComponentModel
using System.Drawing
using System.Data
using System.Text
using System.Windows.Forms
namespace ProjectTracker
{
*** [Designer(typeof(TabPage))]
*** [ToolboxBitmap(typeof(TabPage))]
*** public partial class ProjDocsPage : TabPage
*** {
******* private AutoScaleMode autoScaleMode
******* public AutoScaleMode AutoScaleMode
******* {
*********** get { return autoScaleMode }
*********** set { autoScaleMode = value }
******* }
******* public ProjDocsPage()
******* {
*********** InitializeComponent()
******* }
*** }
}


More...

View All Our Microsft Related Feeds
 

Similar threads

P
Replies
0
Views
71
Paulo Vitor5
P
D
Replies
0
Views
881
Dona Sarkar and Brandon LeBlanc
D
S
Replies
0
Views
491
Simon Timms (MVP)
S
Back
Top Bottom