473,466 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Command_button to textbox $ or input?

Wagsy
14 New Member
Hi All,
I have a virtual keypad - say 0-9, when i press the buttons i want the sequence of keypresses to appear in a textbox. at the moment when i type them in they just overwrite each other. i want them to step along similar to a calculator?
any ideas - currently i use:

(its on another pc so im guessing here)!

command1_click
text1.textbox.caption
end sub

anyway that bit work where it goes into the text box but like i say the first chR$ just overwrites as i choose a different key!!!
Sep 6 '07 #1
3 1093
YarrOfDoom
1,247 Recognized Expert Top Contributor
Well here's something you can try for the part with the buttons:

Expand|Select|Wrap|Line Numbers
  1. Sub Button1_Click()
  2. TextBox1.Text = TextBox1.Text + "1"
  3. End Sub
  4.  
  5. Sub Button2_Click()
  6. TextBox2.Text = TextBox2 + "2"
  7. End Sub
  8.  
  9. And so on...
  10.  
Yarr Of Doom
Sep 6 '07 #2
kadghar
1,295 Recognized Expert Top Contributor
Well here's something you can try for the part with the buttons:

Expand|Select|Wrap|Line Numbers
  1. Sub Button1_Click()
  2. TextBox1.Text = TextBox1.Text + "1"
  3. End Sub
  4.  
  5. Sub Button2_Click()
  6. TextBox2.Text = TextBox2 + "2"
  7. End Sub
  8.  
  9. And so on...
  10.  
Yarr Of Doom
i'd recomend you to use & instead of +, just to prevent mistakes when you are working with numberic values.
Sep 6 '07 #3
Wagsy
14 New Member
Thanks a lot, i did this and it works fine

Private Sub Command10_Click()
Text2.Text = Text2.Text & "4"
End Sub
Sep 7 '07 #4

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

Similar topics

2
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005...
9
by: Jerry | last post by:
In limiting textbox input to 500 characters I would like to include a dynamic count of characters input while the user is typing into a textbox. This would obviously be a client side control,...
7
by: I am Sam | last post by:
I have a DataGrid that is passing information to a stored procedure properly but the parameters aren't being casted properly. I was woundering if anyone can tell me how I should properly cast the...
3
by: Justin Morris via DotNetMonster.com | last post by:
<asp:TextBox ID="TextBox1" runat="server" value='<%=Server.HtmlEncode (Request.Cookies("Username")("Username"))%>'/> <input name="Password" type="text" id="Password" value='<%...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
5
by: Kulgan | last post by:
Hi all, Is it possible in javascript to add a textbox when the last of three radiobuttons is clicked ? thanks !
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
1
by: sparksol | last post by:
I have a form with a drop down box. If you select an option in the drop down box (depending which option is selected) one or two textbox(es) and a submit button display. I would like to keep the...
1
by: differentsri | last post by:
THIS IS AN ASP.NET 1.1 APPLICATION IAM TRYING TO UPDATE THE FIELD BUT I AM NOT ABLE TO UPDATE IT? CAN U TELL THE REASON ? IT IS GIVING THE FOLLOWING ERROR BELOW I HAVE ALSO GIVEN THE CODE OF...
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
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,...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.