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

TextBox alignment

Dear all,
on my form I have 2 textboxes:
Name
FilePath
Near the textbox FilePath there is a browse button and textbox itself is
readonly.
So first user presses Browse and selects path, then he types filename and
when he is typing, the FileName.text is automatically typed into FilePath
after the path.
Problem: If path is too long the FileName.text is not in the visible area of
FilePath. I need the textbox to be rightaligned. But the alignment property
don't help, it seems to only work if the text changed directly by user.
Is thare a way to solve this?
Thanks,
Boni
Nov 21 '05 #1
2 1586
"Boni" <oilia@nospam> schrieb:
on my form I have 2 textboxes:
Name
FilePath
Near the textbox FilePath there is a browse button and textbox itself is
readonly.
So first user presses Browse and selects path, then he types filename and
when he is typing, the FileName.text is automatically typed into FilePath
after the path.
Problem: If path is too long the FileName.text is not in the visible area
of FilePath. I need the textbox to be rightaligned.


\\\
Me.TextBox2.Text = Me.TextBox1.Text
Me.TextBox2.SelectionStart = Me.TextBox2.TextLength
Me.TextBox2.ScrollToCaret()
///

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

Nov 21 '05 #2
Thanks, just what I wanted!!!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:OK**************@TK2MSFTNGP10.phx.gbl...
"Boni" <oilia@nospam> schrieb:
on my form I have 2 textboxes:
Name
FilePath
Near the textbox FilePath there is a browse button and textbox itself is
readonly.
So first user presses Browse and selects path, then he types filename and
when he is typing, the FileName.text is automatically typed into FilePath
after the path.
Problem: If path is too long the FileName.text is not in the visible area
of FilePath. I need the textbox to be rightaligned.


\\\
Me.TextBox2.Text = Me.TextBox1.Text
Me.TextBox2.SelectionStart = Me.TextBox2.TextLength
Me.TextBox2.ScrollToCaret()
///

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

Nov 21 '05 #3

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

Similar topics

4
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
1
by: crowl | last post by:
Hi all, I start developing for pocket pc with C# under VS.NET 2003. I run into trouble with the textbox settings. On the form I have placed a textbox. I noticed that in the textbox properties...
4
by: JIM.H. | last post by:
how do you do Alignment in a textbox?
1
by: SD | last post by:
Hi, I can't find how the heck to set the alignment on my textbox to center, right or left. Help! SD
4
by: Nina | last post by:
Hi everyone, I try to a display a .txt file in window's textbox or rich textbox. The text file has contents line by line aligned perfectly when using NotePad to view and print it. But when I...
2
by: Ehsanal | last post by:
plz i have a question: when i put the properties in a textBox like this: TextAlign = System.Windows.Forms.HorizontalAlignment.Right; RightToLeft = RightToLeft.YES; then the writting will...
1
by: jobs | last post by:
I have a content page with a bunch of controls. They are not under a table. I add textboxes and they are won't align left justified like other controls. In Designer they all seem left justified. I...
6
by: rn5a | last post by:
When the EditCommandColumn in a DataGrid is clicked, all the BoundColumns get replaced by TextBoxes so that users can alter the data. By default, the Text in the TextBoxes are left-aligned. Is...
2
by: priyadarshi123 | last post by:
Hi I am Priyadarshi I am facing some problem in alignment of textbox inside <TD>.These are not aligning properly.And when i am making the textbox as multilineand icrease the height of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.