473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Making richtextbox resize with form?

How do I have a richtextbox (or similar item) width resize when I increase
the parent form width?

I could probably use the form change event and have the richtextbox set
to -10 of the form width but was wondering if there is a better way.

Thanks,
Brett
Nov 21 '05 #1
2 8773
"Brett" <no@spam.com> schrieb:
How do I have a richtextbox (or similar item) width resize when I increase
the parent form width?

I could probably use the form change event and have the richtextbox set
to -10 of the form width but was wondering if there is a better way.


Set the richtextbox's 'Dock' property to 'Fill' or anchor the form on each
of the four edges.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
"Brett" <no@spam.com> schrieb:
How do I have a richtextbox (or similar item) width resize when I
increase the parent form width?

I could probably use the form change event and have the richtextbox set
to -10 of the form width but was wondering if there is a better way.


Set the richtextbox's 'Dock' property to 'Fill' or anchor the form on each
of the four edges.


Nice. Thanks.
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: |-|erc | last post by:
Hi! Small challenge for you. The index.php uses this file and calls layout(). Take a look at www.chatty.net this file draws the chat login box on the right. I traced the CHAT button it submits...
0
by: Franco, Gustavo | last post by:
Hi, I have a RichTextBox, I have set the property ReadOnly to true, when I insert text there is no problem in at all, I can't change anything. But when I insert a image, I CAN resize the...
0
by: Sascha Kerschhofer | last post by:
Hi, is there a possibility to make the RichTextBox automatically resize its height when I write to much text in it - instead of make the scrollbar visible? Is there any specific event or a...
5
by: Gary | last post by:
hi... how do I successfully resize a richtextbox within the main form, my code as follows... Private Sub frmMainForm_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
3
by: CJMHotmail | last post by:
Hi, How can I resize the RichTextBox with a dialog window? When I maximum the dialog window, the RichTextBox is not resized. Any one can help?? Thanks. cjm
0
by: Vimalathithan | last post by:
Hi Every one, I have developing the user control with RichTextBox in C# windows application. The problem is when I paste any text inside the RichTextBox at the runtime the pasted lines not in...
3
by: Vimalathithan | last post by:
Hi, How can I resize the RichTextBox in C# windows application when I paste the image or text in RichTextBox control. please consider this poster as a urgent one with regards, Vimal
0
by: Vimalathithan | last post by:
I just developing a editor. I have provide the options like Bold, Italic, underlin, font change, font size change. These font options are keep in with one toolstripbutton. the toolstripbar keep...
0
by: Robert | last post by:
Hi there, I have a dialog with a "RichTextBox" that's anchored on all 4 sides of the dialog. I now want to resize this control in my "OnLoad()" handler so that it reflects the size of its text....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.