473,799 Members | 3,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to automatically write in text box without keyboard with visual basic.net

39 New Member
Hi i am newbie in visual basic ?
How to automatically write in text box without keyboard with visual basic.net ..
And what is .net(dotnet) ?
Jan 3 '10 #1
6 3578
tlhintoq
3,525 Recognized Expert Specialist
What is .NET? Oh boy....
http://msdn.microsoft.com/en-us/netf...k/default.aspx

How to automatically write in text box without keyboard
What does that even mean?

I HIGHLY SUGGEST you go buy an introductory book on Visual Basic .NET programming at the local book store.
Jan 3 '10 #2
ThatThatGuy
449 Recognized Expert Contributor
there's a on screen keyboard in Programs-> Accessories->Accessibilit y

use that
Jan 4 '10 #3
p309444
5 New Member
Do you mean set the text in a text box programmaticall y?

textboxid.text= "Hello World"
Jan 10 '10 #4
smithse
3 New Member
why do you want to do it without the keyboard?
Jan 10 '10 #5
yusufjammy
39 New Member
I want to write text in textbox . one by one character without keyboard is there any command which suit my needs ? \
thanks in advance
Jan 10 '10 #6
!NoItAll
297 Contributor
You want the text to appear in a textbox one character at a time just as though someone were typing it in. You need a function to do that. Pass the text and the textbox into the function.

Expand|Select|Wrap|Line Numbers
  1.  
  2.  Friend Sub GhostTyper(ByVal TextBox As TextBox, ByVal sText As String)
  3.  
  4.         For I As Integer = 0 To (sText.Length - 1)
  5.             TextBox.Text = TextBox.Text & sText.Substring(I, 1)
  6.             System.Threading.Thread.Sleep(150)
  7.             TextBox.Refresh()   'you need to refresh after each character for it to actually show up
  8.         Next
  9.  
  10.     End Sub
  11.  
You can adjust the sleep time for faster or slower entry, or even add a parameter to pass the speed in if you like.
Jan 21 '10 #7

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

Similar topics

8
41611
by: Orloff | last post by:
Hi, on most (all?) browsers, when you put the pointer on a <a href="..." title="popup text">this is a link</a> without clicking on the link, there is a popup caption with the "popup text". I would like to achieve the same with some text that is not a link. I realized that I could simply make it <a title="popup text">this is just some text</a>
1
326
by: aparnasinha26 | last post by:
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4 p.m. daily. I have to develop the application in VB.net My first question is which Visual Basic.Net Project type do I use- Windows Service Or Class Library? Second Question is What are the necessary initial steps I have to take during development?...
4
2555
by: Christian Blackburn | last post by:
Hi Gang, I've created a text-based file format. Once I've generated the text to save the file is as it should be in the debug window. However once I write it to a file a " is added to the beginning and a ", to the end. Can somebody explain why? I'm using VB2003. Thanks in advance for any help, Christian Blackburn Here's my code: Public Sub SaveGame(ByVal strDocument As String, Optional ByVal
2
2388
by: Frank Rizzo | last post by:
I have a barcode scanner that hooks up to a keyboard port. I've figured out how to setup a system-wide keyboard hook. However, how do I distinguish regular keyboard input from the barcode scanner input. Does anyone have any ideas? Thanks.
3
2251
by: FabFreddy | last post by:
Hello, I'm writing a ASP.NET application. A applicatie that first was written in Basic and now i'm writting it in VB.NET, but I have one huge problem. I don't know how to get keyboard input. The basic application was keyboard driven and now it has to be both mouse and keyboard! Any help how to do this in ASP.NET? Thx Fred
63
3983
by: John Salerno | last post by:
I know there's a request for a good IDE at least once a week on the ng, but hopefully this question is a little different. I'm looking for suggestions for a good cross-platform text editor (which the features for coding, such as syntax highlighting, etc.) but not a full IDE with all the fancy jazz (GUI developer, UML diagrams, etc.). Ideally, it would be something I could even put on a flash drive and move from computer to computer, but...
3
1420
by: Bruce One | last post by:
Does anyone know a way to make the IDE close braces in Ifs statements (methods also) for C# ? In VB.NET you have an automatic closing...
2
1533
by: Cheeks | last post by:
Hi all, Has anyone here developed a text editor using C ? If so pls share the ideas with me. I have some basic doubts on how to edit the text in stdout as per the input from keyboard. Also whenever the user inputs any characted to a IO function like scanf, the character is displayed in stdout.. how can I block it.
4
3207
by: Ross | last post by:
Hello, I am trying to Read and Write to a text file on a web server using Microsoft Visual Basic 2005 Express Edition. So far I have managed to complete my testing with a local text file using the StreamReader Class. Is it possible to use this class when trying to read and write to a text file located on a server? If so, could you please provide some examples? I have setup a free web host with www.ifastnet.com and have some connection...
0
9685
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
10470
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10214
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
10023
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...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.