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

Textbox property to select Appended text

I use Autocomplete SuggestAppend in relation to a textbox.

Assuming my textbox shows numbers and the dropdown list contains for example
12312
13411
14511
15611

If I type "1" I will see in the textbox "12312" with "2312" appended and the dropdown list showing the options. I can use textbox.Text to get the "1" which I typed.

How can I get the entire textbox value ie "12312" (the "1" and the appended "2312")?

Thanks
Apr 16 '14 #1
1 1106
horace1
1,510 Expert 1GB
not sure what you are attempting to do but could you test the keypress and depending on the key write the required string to the TextBox, e.g.
Expand|Select|Wrap|Line Numbers
  1.     Private Sub TextBox1_KeyPress(sender As System.Object, e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
  2.         If e.KeyChar = "1"c Then
  3.             TextBox1.AppendText("12345")
  4.         End If
  5.         e.Handled = True
  6.     End Sub
  7.  
when 1 is kit 12345 is writen to the TextBox
Jul 6 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
I want to select all text in a multi line text box from a command butten. Thank for help Dave
4
by: melvynadam | last post by:
If I open a new page with very little text on it such as a bugmenot results page is there a way to select some of the text there and assign it to variables? Selecting all and copying to the...
1
by: BGS | last post by:
Is there some setting that will allow users to select the text displayed in a Label on a Windows Form? I would just like to be able to highlight the text so that I could use Ctrl-Ins to capture...
1
by: guy | last post by:
Is it possible to select all text in a asp text box when it gets focus? How?
1
by: KwonNam Son | last post by:
Is this possible to align select box's option text? I tried <select style="text-align: center;"> and <option style="text-align: center;>text</option>, it didn't work properly. Any idea, please?...
3
by: cj | last post by:
When I select textbox1 I want all text in it to be selected. I used the textbox1_enter event to run textbox1.selectall() This works if I tab to the box but not if it is selected by clicking on...
3
by: ASP Developer | last post by:
I have a variety of pages that use a master page. For some reason when I attempt to copy any of the label text on the screen it seems to highlight most of the screen randomly and I can't simply...
4
by: aeris | last post by:
Hello! I'm using C# to doing my window application. May I ask, how to write text on textbox after the default text is clear? I have setted the default text in textbox, when a user click on it,...
0
by: Kam06 | last post by:
am appending two files.but the appended text is not displayed properly. the appended text is like †††††††††††††††䡄偃䔠慮汢摥›†夠獥††††† ...can some 1 help me wth this... this the code: PrintWriter out =...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.