473,804 Members | 3,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1195
Found it - http://www.developerfusion.co.uk/show/57/

Sorry for the post.

"Miro" <mi******@golde n.netwrote in message
news:%2******** ********@TK2MSF TNGP03.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
23027
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 longer than the height of the image, I get all this dead space below the image with the text just going vertically down in its own <td>. Can I use style sheet to position the image and the text so that the text can start taking up the whole page...
2
7587
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.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text.... text....
4
2633
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
12733
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 effect is only on some webform's not in all.
3
2614
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. .. http://www.geocities.com/jweinberg1975/dropdown_on_text00.html .. In order to see the behavior you should "mouseover" the white-on-black text segment that says "omnis dolor repellend" .. the thing is that I don't want for the whole space in the paragraph to be empty. I just need for the little menu to...
5
9879
by: paii, Ron | last post by:
Is there a setting to not word wrap text on a unbound text box. in A97?
2
1124
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 have it so that when the text box has focus (e.g. I've clicked the mouse while over it), and I hit the <ENTERkey, it also processes what's in the text box. I have figured out by using IntelliSense that there is a "Leave" event, and by actual...
4
4867
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 with text and send an <enter> key. If WebBrowser can't do this, does anyone know of a different managed control that can do this? Dab
1
1139
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 which is used in this case and the code. thanks
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.