RE: RichTextBox in a TableLayoutPanel won't shrink
- From: v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda Liu [MSFT])
- Date: Fri, 29 Dec 2006 03:44:19 GMT
Hi Dave,
It seems that you have set the size type of the column that contains the
RichTextBox to AutoSize. Am I right? If so, please set it to Percent.
FYI, to do this, select the TableLayoutPanel on the form and click the
'Edit Rows and Columns' link at the bottom of the Properties window or in
the smart tag panel of the DataGridView. In the Columns and Row Style
window, select 'Columns' in the 'Show' combobox and set the size type of
the column to Percent.
When the size type of a column/row is set to AutoSize, the size of the
column/row is determined by the size of the control it contains, i.e. the
column/row will expand when the control becomes bigger, and shrink when the
control becomes smaller. But it does not behave properly when the size of
the TableLayoutPanel control shrinks.
On the contrary, if the size of the column/row is set to Percent, the size
of the column/row is determined by the size of the TableLayoutPanel.
Hope this helps.
Please try my suggestion and let me know the result.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: RichTextBox in a TableLayoutPanel won't shrink
- From: David Thielen
- RE: RichTextBox in a TableLayoutPanel won't shrink
- Prev by Date: Re: UserControl - Painting in Control-Designer
- Next by Date: Treeview problems
- Previous by thread: NumericUpDown custom drawing
- Next by thread: RE: RichTextBox in a TableLayoutPanel won't shrink
- Index(es):
Relevant Pages
|