Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom URL Handler Pin
notacake17-Dec-05 4:28
notacake17-Dec-05 4:28 
GeneralRe: Custom URL Handler Pin
Curtis Schlak.17-Dec-05 11:11
Curtis Schlak.17-Dec-05 11:11 
GeneralRe: Custom URL Handler Pin
notacake20-Dec-05 3:59
notacake20-Dec-05 3:59 
QuestionMorphing widgets: Form to Gradient Form Pin
zopiro16-Dec-05 8:37
zopiro16-Dec-05 8:37 
AnswerRe: Morphing widgets: Form to Gradient Form Pin
g00fyman16-Dec-05 15:31
g00fyman16-Dec-05 15:31 
QuestionReduce the container zone of a panel. Pin
galinace16-Dec-05 8:36
galinace16-Dec-05 8:36 
AnswerRe: Reduce the container zone of a panel. Pin
TheGreatAndPowerfulOz16-Dec-05 11:32
TheGreatAndPowerfulOz16-Dec-05 11:32 
AnswerRe: Reduce the container zone of a panel. Pin
Curtis Schlak.16-Dec-05 11:41
Curtis Schlak.16-Dec-05 11:41 
You know, I am preparing an article on a replacement tab control that I just wrote that has this exact feature. Admittedly, it's authored in .NET 1.1, but I think the concepts will remain the same. (I haven't tried the .NET 2.0 stuff, yet.)

Here are the steps that I used to do this.

1. Override the DisplayRect to return the amount of area that you want the client to use.
2. Derive a new class from Control.ControlCollection that passes through requests for controls to the first child of your control.
3. Override Control.CreateControlCollection to return the class that you created in step 2.
4. Make the first (and only) child of your control a Panel with Dock = DockStyle.Fill.

If I'm not mistaken, that should do it. If that's not clear (and I hate to do this) you can always wait for my article. The working title is YaTabControl (Yet Another....).

Hope that helps.

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
GeneralRe: Reduce the container zone of a panel. Pin
galinace16-Dec-05 22:38
galinace16-Dec-05 22:38 
GeneralRe: Reduce the container zone of a panel. Pin
Curtis Schlak.17-Dec-05 4:22
Curtis Schlak.17-Dec-05 4:22 
GeneralRe: Reduce the container zone of a panel. Pin
galinace17-Dec-05 4:59
galinace17-Dec-05 4:59 
GeneralRe: Reduce the container zone of a panel. Pin
Curtis Schlak.28-Dec-05 9:55
Curtis Schlak.28-Dec-05 9:55 
GeneralRe: Reduce the container zone of a panel. Pin
galinace18-Dec-05 6:25
galinace18-Dec-05 6:25 
GeneralRe: Reduce the container zone of a panel. Pin
Curtis Schlak.19-Dec-05 18:07
Curtis Schlak.19-Dec-05 18:07 
QuestionReflection code: C# and VB.Net equivalents in .NET 1.1 Pin
pankazmittal16-Dec-05 6:58
pankazmittal16-Dec-05 6:58 
AnswerRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
Nish Nishant16-Dec-05 7:35
sitebuilderNish Nishant16-Dec-05 7:35 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
pankazmittal16-Dec-05 7:49
pankazmittal16-Dec-05 7:49 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
Nish Nishant16-Dec-05 9:52
sitebuilderNish Nishant16-Dec-05 9:52 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
Nish Nishant16-Dec-05 9:53
sitebuilderNish Nishant16-Dec-05 9:53 
AnswerRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
Nish Nishant16-Dec-05 9:57
sitebuilderNish Nishant16-Dec-05 9:57 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
pankazmittal16-Dec-05 9:59
pankazmittal16-Dec-05 9:59 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
Nish Nishant16-Dec-05 10:02
sitebuilderNish Nishant16-Dec-05 10:02 
GeneralRe: Reflection code: C# and VB.Net equivalents in .NET 1.1 Pin
pankazmittal16-Dec-05 10:03
pankazmittal16-Dec-05 10:03 
Questionpreview and print a PrintDocument in VB6 Pin
IsaacB16-Dec-05 6:55
IsaacB16-Dec-05 6:55 
QuestionHUH ?? Pin
IceWater4216-Dec-05 6:36
IceWater4216-Dec-05 6:36 

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.