Hi again,
I have a textbox where the text is longer than the textbox width. When I
type something in there or even do any single keystroke (other than tab, up,
down, or enter) and then leave, the beginning of the string shows, and focus
goes on to the next box. But if I just tab through or want to go straight to
the next textbox, the beginning of the string is cut off, leaving the end of
the string visible.
More info that may/may not be helpful:
When the textbox is initially entered, I highlight the entire string using
selectionstart = 0, selectionlength = textbox.text.length, textbox.focus;.
In my FocusLeave event, I do use textbox.SelectionStart = 0;, but it only
works if there's that other kind of keystroke (like "a" or left arrow).
Any suggestions???
Thanks again,
Mel 1 2018
Hi Mel,
I may be a little confused with your exact problem, I'm not sure what you
mean by the focus leave event only working when there is a keystroke such as
left arrow or "a". Does this mean when you do something like enter a longer
string than the width, and then tab away from the textbox it is not returning
to the beginning of the string? What I did was implement the Leave event and
had it set the selectionstart to 0. This did work for me in a situation
where I tabbed away from the textbox or selected another control with the
mouse. Hope this helps!
"melanieab" wrote: Hi again, I have a textbox where the text is longer than the textbox width. When I type something in there or even do any single keystroke (other than tab, up, down, or enter) and then leave, the beginning of the string shows, and focus goes on to the next box. But if I just tab through or want to go straight to the next textbox, the beginning of the string is cut off, leaving the end of the string visible. More info that may/may not be helpful: When the textbox is initially entered, I highlight the entire string using selectionstart = 0, selectionlength = textbox.text.length, textbox.focus;. In my FocusLeave event, I do use textbox.SelectionStart = 0;, but it only works if there's that other kind of keystroke (like "a" or left arrow). Any suggestions??? Thanks again, Mel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Proost |
last post by:
Hi group,
I've got what seems a simple problem, but I can't find the solution. I've
got a textbox and a handheld scanner to scan barcodes, the scanner just
generates keypresses like a keyboard...
|
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps...
|
by: dbuchanan |
last post by:
ComboBox databindng Problem
== How the ComboBox is setup and used:
My comboBox is populated by a lookup table. The ValueMember is the
lookup table's Id and the DisplayMember is the text from a...
|
by: Joel Byrd |
last post by:
I'm having a little problem with using type-ahead functionality for an
auto-suggest box. Sometimes, when I start to type something and the
type-ahead shows up, the AJAX will send a request query...
|
by: Mike Collins |
last post by:
I cannot get the correct drop down list value from a drop down I have on my
web form. I get the initial value that was loaded in the list.
It was asked by someone else what the autopostback was...
|
by: DC |
last post by:
The Code
<%@ import namespace="System" %>
<%@ import namespace="System.Web" %>
<%@ import namespace="System.Web.UI" %>
<%@ import namespace="System.Web.UI.HtmlControls" %>
<%@ import...
|
by: Werner Schmidt |
last post by:
Dear group,
I have a very strange behaviour:
In a loop there are several TextBoxes initialized:
TextBox objTextBox = null; // one declaration
for-loop // multiple initialisations
|
by: sjickells |
last post by:
Hi
I am having a problem using asp:TextBox's in a transparent table.
I have a background image on the page and a table in the middle of the
page. I have set the background colour of the table...
|
by: pankajsingh5k |
last post by:
Hi guys,
These question is for all the experts...
Please help me before my brain explodes
The problem is again with the formview control..
I have a formview and i have to use it that...
|
by: pankajsingh5k |
last post by:
Dear All,
Please help me...
I had read an article to lazy load a tab in a tabcontainer using an update panel on
http://mattberseth.com/blog/2007/07/how_to_lazyload_tabpanels_with.html
...
|
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...
|
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...
|
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...
|
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...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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....
|
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
| |