Jump to content

Recommended Posts

Posted

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...