473,324 Members | 2,417 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,324 software developers and data experts.

i want to know about how to manipulation textbox to produce an arithmetic result

ok lets say i have three buttons,
button1.text = "+"
button2.text = "9"
button3.text = "="
and a textbox.text = "0"

if i click any of first two buttons, the .text value adds to textbox1.text

say(0+9+9+9)

how do i write my code under button3 that my result will output 27 on the textbox
Jun 17 '10 #1
2 995
Aimee Bailey
197 Expert 100+
Im gonna get told off again, but heres a very crude solution:

Expand|Select|Wrap|Line Numbers
  1. Dim v As New DataTable
  2. TextBox1.Text = v.Compute(TextBox1.Text, "")
  3.  
please note, this doesnt really do complicated sum's well, rather just basic maths.
Jun 17 '10 #2
thanks Boss u rock, it worked, its just for basic calculations
Jun 19 '10 #3

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

Similar topics

58
by: Jeff_Relf | last post by:
Hi Tom, You showed: << private const string PHONE_LIST = "495.1000__424.1111___(206)564-5555_1.800.325.3333"; static void Main( string args ) { foreach (string phoneNumber in Regex.Split...
3
by: Gidi | last post by:
Hi, Is it possible to know when TextBox loses focus to which object it lost it? what i mean is when the LostFocus Event occur is it possible to know which object got the focus instead? thanks,
14
by: Tom.PesterDELETETHISSS | last post by:
Hi, I think this question requires an in depth understanding of how a browser cache works. I hope I can reach an expert here. I may have found a quirk in the asp.net documentation or I don't...
11
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and...
5
by: Scott | last post by:
I have generated a form that inserts travel information and I need to manipulate that info. All the info is now stored in variable and i need to generate prices... Its a little complicated cos...
3
by: millw0rm | last post by:
I got a textbox with name = action, whn a key is press (eg. 'm') it sends a query to database grabs data from server n send data back keywords found, each keyword got a function called...
5
by: needin4mation | last post by:
Hi, I have this in my asp.net 1.1 page: <asp:textbox id="Comment" tabIndex="4" runat="server"></asp:textbox> Inside the tags, say I have: <b>I am bold.</b> When I run the page I get the...
0
by: smileman | last post by:
Hi In 5.0 Manual, I see XA Interface( use SQL,Connector/J ). But,
25
by: tooru honda | last post by:
Hi, I have read the source code of the built-in random module, random.py. After also reading Wiki article on Knuth Shuffle algorithm, I wonder if the shuffle method implemented in random.py...
1
by: pazazuzu | last post by:
Hello, I have been having problems with some code I am writing and have not been able to figure out what I am doing wrong, even after some debugging. I have a textbox that users can input any...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.