Resizing of User Control At Runtime

J

Jeff Gaines

I have noticed some odd behaviour in a User Control - it's a simple RTF
editor with a couple of ToolStrips at the top to allow opening/saving
files, formatting etc. with a RichTextBox as the actual edit control.

When I run my test program it works as expected, specifically when I
resize the form the RichTextBox resizes (it is DockStyle.Fill).

When I use the control on a TabPage within another program the RichTextBox
doesn't resize (doesn't grow nor shrink).

Is this an oddity of the Tab Control?

If not I've got some interesting debugging to do :)
 
J

Jeff Gaines

On 11/07/2012 in message <[email protected]> Jeff
Gaines wrote:

[snipped]

Further investigation shows the control behaves properly if it is on the
first tab page of a tab control but not if it is on the second or
subsequent tab page....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top