Click here to Skip to main content
15,919,028 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Conditional Compiler Directives Pin
Scott Dorman5-Oct-07 3:42
professionalScott Dorman5-Oct-07 3:42 
AnswerRe: Conditional Compiler Directives Pin
PIEBALDconsult4-Oct-07 4:24
mvePIEBALDconsult4-Oct-07 4:24 
GeneralRe: Conditional Compiler Directives Pin
Vasudevan Deepak Kumar4-Oct-07 6:06
Vasudevan Deepak Kumar4-Oct-07 6:06 
QuestionWCF not passing its Data Contract :( Pin
twista3-Oct-07 16:29
twista3-Oct-07 16:29 
QuestionTabPage (rant) Pin
PIEBALDconsult3-Oct-07 11:01
mvePIEBALDconsult3-Oct-07 11:01 
AnswerRe: TabPage (rant) Pin
Scott Dorman3-Oct-07 12:16
professionalScott Dorman3-Oct-07 12:16 
GeneralRe: TabPage (rant) Pin
PIEBALDconsult3-Oct-07 15:45
mvePIEBALDconsult3-Oct-07 15:45 
GeneralRe: TabPage (rant) Pin
Scott Dorman3-Oct-07 16:49
professionalScott Dorman3-Oct-07 16:49 
Sure. This would be the bare minimum implementation:
C#
[Designer("System.Windows.Forms.Design.TabPageDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class CustomTabPage : TabPage
{
 
}
The only issue is that you can't add these tab pages to the TabControl at design time since the TabControl class doesn't know anything about them. You can add the tab pages normally and then go into the designer code and change them by hand. (Even though the designer code is autogenerated, this change won't be lost the next time it is generated.)

If you want to be able to add them at design time, you would need to do some more work and create a custom TabControl derived class that knows how to add these controls instead of the normal TabControl.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

GeneralRe: TabPage (rant) Pin
PIEBALDconsult3-Oct-07 17:54
mvePIEBALDconsult3-Oct-07 17:54 
GeneralRe: TabPage (rant) Pin
Scott Dorman4-Oct-07 1:17
professionalScott Dorman4-Oct-07 1:17 
GeneralRe: TabPage (rant) Pin
PIEBALDconsult4-Oct-07 4:27
mvePIEBALDconsult4-Oct-07 4:27 
GeneralRe: TabPage (rant) Pin
PIEBALDconsult4-Oct-07 5:37
mvePIEBALDconsult4-Oct-07 5:37 
GeneralRe: TabPage (rant) Pin
PIEBALDconsult4-Oct-07 6:53
mvePIEBALDconsult4-Oct-07 6:53 
GeneralRe: TabPage (rant) Pin
Scott Dorman4-Oct-07 11:33
professionalScott Dorman4-Oct-07 11:33 
Questionwhat I need for .net 3.0 Pin
cignox11-Oct-07 23:58
cignox11-Oct-07 23:58 
AnswerRe: what I need for .net 3.0 Pin
Christian Graus2-Oct-07 0:20
protectorChristian Graus2-Oct-07 0:20 
GeneralRe: what I need for .net 3.0 Pin
cignox12-Oct-07 0:27
cignox12-Oct-07 0:27 
GeneralRe: what I need for .net 3.0 Pin
Scott Dorman2-Oct-07 3:15
professionalScott Dorman2-Oct-07 3:15 
GeneralRe: what I need for .net 3.0 Pin
cignox12-Oct-07 4:06
cignox12-Oct-07 4:06 
GeneralRe: what I need for .net 3.0 Pin
Scott Dorman2-Oct-07 16:43
professionalScott Dorman2-Oct-07 16:43 
GeneralRe: what I need for .net 3.0 Pin
Pete O'Hanlon3-Oct-07 9:46
mvePete O'Hanlon3-Oct-07 9:46 
GeneralRe: what I need for .net 3.0 Pin
Scott Dorman3-Oct-07 11:43
professionalScott Dorman3-Oct-07 11:43 
GeneralRe: what I need for .net 3.0 Pin
Pete O'Hanlon4-Oct-07 2:01
mvePete O'Hanlon4-Oct-07 2:01 
GeneralRe: what I need for .net 3.0 Pin
Scott Dorman4-Oct-07 11:21
professionalScott Dorman4-Oct-07 11:21 
AnswerRe: what I need for .net 3.0 Pin
Dave Kreskowiak2-Oct-07 8:19
mveDave Kreskowiak2-Oct-07 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.