473,386 Members | 1,786 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 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 1110
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: 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:
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.