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

Text and EnterKey

VB.net 2005 Express

Say I have

Dim MyString as String = "ABCDEF"

and currently I have a timer that sends every 5 seconds:

SendKeys.Send( MyString )
Questions:
1. How do i add an "enterkey" to the end of the string.
2. If I am receiving the MyString through another variable, how do I make
sure that there is no funny characters in it like an enter key at the very
end of the string ( so 2 enters are not sent ) ?
3. Im assuming the "tab" key works the same so if I can find the enterkey
code somewhere - that would be super.

Thanks,

Miro

Jul 30 '07 #1
1 1174
Found it - http://www.developerfusion.co.uk/show/57/

Sorry for the post.

"Miro" <mi******@golden.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
VB.net 2005 Express

Say I have

Dim MyString as String = "ABCDEF"

and currently I have a timer that sends every 5 seconds:

SendKeys.Send( MyString )
Questions:
1. How do i add an "enterkey" to the end of the string.
2. If I am receiving the MyString through another variable, how do I make
sure that there is no funny characters in it like an enter key at the very
end of the string ( so 2 enters are not sent ) ?
3. Im assuming the "tab" key works the same so if I can find the enterkey
code somewhere - that would be super.

Thanks,

Miro

Jul 30 '07 #2

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

Similar topics

3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
2
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.......
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
4
by: Jerry | last post by:
Hello I have some textboxes (input type=Text) in a Form. In some Forms if I Press Enter while I am in the Textbox It causes a Submit. The input type is text not submit. It's obsure that the...
3
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .....
5
by: paii, Ron | last post by:
Is there a setting to not word wrap text on a unbound text box. in A97?
2
by: scenic_man | last post by:
I'm playing around with some sample code in VB Express. I have a form with a text box and a button. Naturally, the button causes some code to process what's in the text box. Now I would like to...
4
by: David A. Beck | last post by:
I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page...
1
by: ahmadnadeem | last post by:
hi Dear, i have aproblem in richtextbox.the problem is when i press the enterkey four times then the cursor should come to the next line within the rich textbox. please tell me about the event...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.