Solved

vb.net - using send key

Posted on 2013-05-10
1
693 Views
Last Modified: 2013-05-10
Hello,
I have a string like this "hello world"
how can I make something like this

for each letter
  SendKeys.Send("{H}")
next

so basically it write the (hello world) letter by letter..
0
Comment
Question by:XK8ER
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39157504
Dim s As String = "hello world"

For Each letter As Char In s
    SendKeys.Send(letter.ToString().ToUpper())
    Application.DoEvents()  ' Allow form to update its display during the loop
Next

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question