473,320 Members | 1,829 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,320 software developers and data experts.

Resize a textbox at runtime

Hi,

I have a multiline textbox in my application. It starts out as a single
line textbox. I want it to increase in height to accomodate another
line at runtime if the user input exceeds it's width.

Can this be done?

I have set the multiline and wordwrap properties to be true.

Thanks,
Avanti

Aug 8 '06 #1
2 3247
avanti wrote:
Hi,

I have a multiline textbox in my application. It starts out as a single
line textbox. I want it to increase in height to accomodate another
line at runtime if the user input exceeds it's width.

Can this be done?

I have set the multiline and wordwrap properties to be true.

Thanks,
Avanti
You cannot do it automatically.
You will have to monitor the input and resize based on that.

JB
Aug 8 '06 #2
Thanks John.
Do you have some samples that do this. I want to know how to resize
depending upon the input size.

Avanti

John B wrote:
avanti wrote:
Hi,

I have a multiline textbox in my application. It starts out as a single
line textbox. I want it to increase in height to accomodate another
line at runtime if the user input exceeds it's width.

Can this be done?

I have set the multiline and wordwrap properties to be true.

Thanks,
Avanti
You cannot do it automatically.
You will have to monitor the input and resize based on that.

JB
Aug 8 '06 #3

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

Similar topics

1
by: Ankan | last post by:
I have installed framework 1.1. and SP 1 on my computer. I include a textbox to my form but it can only be resized horisontally and not vertically. What is wrong? (It works fine on other components...
1
by: al | last post by:
Greetings, I included a UserControl (UC)on webpage. It works fine except when I change document direction to 'rtl', UC doesn't resize with the rest of document. It just disappears behinde rest...
1
by: Rohan | last post by:
Hi There, Is it possible to rotate or resize pictureboxes, labels, textboxes at runtime? And I even wanted to make textbox and label controls Transperent ?
7
by: Joe | last post by:
I have a label control that will be filled with text at runtime. The length of the text will vary, but the label must stay the same size. Is there a way to set the font size of the text such that...
11
by: Newbie Coder | last post by:
Hi All VB.NET 2003 Can anyone tell me how to stop a user control being able to be resized during both design time & run time, please? I am looking for something like the LOCKED property,...
7
by: Ray Cassick | last post by:
Does anyone here have any code that shows how to resize a control at runtime with the mouse like you can do in the designer? The method has to change depending on what corner of the control you are...
4
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I have a situation where I need to display a form in a panel. Everything works great except if the form is maximized and the panel's size changes. In this case the maximized form's bounds do not...
4
by: DeanJo | last post by:
I am trying to develop a resize module i can include on my pages that calculates the size of input fields based on the screen resolution... I can already detect the screen resolution, and i have...
0
by: penguins | last post by:
I have this scenario: AutoCompleteStringCollection collection = new AutoCompleteStringCollection(); TextBox Text = new TextBox(); /* Logic */ Text.AutoCompleteSource =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.