all groups > dotnet academic > march 2004 >
You're in the

dotnet academic

group:

windows application



windows application Oren
3/25/2004 2:31:07 AM
dotnet academic: Hi All

I have a windows application in C#, Sizable Form,
with these controls by order on screen from the top

1. System.Windows.Forms.GroupBox (contain all the othe
controls) -> Anchor: Top, Bottom, Left, Righ
2. System.Windows.Forms.RichTextBox -> Dock: Fil
3. System.Windows.Forms.Splitter -> Dock: Botto
4. System.Windows.Forms.TextBox -> Dock: Botto

* While resizing the form I need to prevent the "vanish" of th
RichTextBox control (up on top) after resizing the form to a bigger
size and move the splitter up.

I have tried the MinSize of the Splitter control

Any ideas

Re: windows application Mack D. Male [MVP]
3/25/2004 12:57:39 PM
I am not sure if I completely understand what you are trying to accomplish,
but I *think* you want to set the MinSize of the RichTextBox, not the
splitter. This way, when you reszie the layout with the splitter, it will
only go up until your RTB has the height you specify in MinSize.

Regards,

Mack D. Male
MVP Visual Developer - Academic
http://www.mastermaq.net


[quoted text, click to view]
Hi All,

I have a windows application in C#, Sizable Form,
with these controls by order on screen from the top:

1. System.Windows.Forms.GroupBox (contain all the other
controls) -> Anchor: Top, Bottom, Left, Right
2. System.Windows.Forms.RichTextBox -> Dock: Fill
3. System.Windows.Forms.Splitter -> Dock: Bottom
4. System.Windows.Forms.TextBox -> Dock: Bottom

* While resizing the form I need to prevent the "vanish" of the
RichTextBox control (up on top) after resizing the form to a bigger
size and move the splitter up.

I have tried the MinSize of the Splitter control.

Any ideas ?

Thanx

AddThis Social Bookmark Button