Make A Calculator With One Textbox And 16 Buttons?

May 8, 2012

I am trying to make a calculator with one textbox and 16 buttons. Buttons are:(0,1,2,3,4,5,6,7,8,9,+,-,*,/,=,C). So here is code for now:

vb.net Private Sub nula_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nula.Click
TextBox1.Text = TextBox1.Text & 0
End Sub
Private Sub jedan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles jedan.Click
TextBox1.Text = TextBox1.Text & 1

[Code]...

When I add those numbers and operators its easy, but how make operations really work now?

View 4 Replies


ADVERTISEMENT

VS 2005 - Make A Quiz In VB - Label - Textbox And Two Buttons ?

Oct 13, 2009

Im trying to make a simple quiz in visual basic all it has is a label a textbox and two buttons. one of the buttons if for checking if the answer is rite while the other is to go to the next question. i want to make it so when the next question button is clicked the label changes to the next question and the textbox is cleared and then when i press check it checks the answer.

View 6 Replies

Calculator - Pass Decimal Values To Radio Buttons So Can Calculate An Output Answer

Sep 2, 2011

To pass decimal values to radio buttons so I can calculate an output answer. it is a tip calculator. I am using radio buttons as options to choose what amount to tip, ie. 10, 15, and 20%. I need to figure out how to pass the value to the buttons in code so I can calculate the tip amount.

View 1 Replies

Buttons - Make Buttons That Chage Between [url] And [url] On Timer Code

Oct 25, 2011

So im creating a mail bomber here is the code

Imports System.Net.Mail
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

[CODE]...

Pretty simble but im trying to make buttons that chage between [URL] and [URL]on the timer code

Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress(TextBox1.Text)
MyMailMessage.To.Add(TextBox3.Text)

[CODE]...

View 9 Replies

Have 4 Different Handles Buttons - Connect Them In Another "general Button" That Will Make The 4 Buttons To Work With One Click?

Mar 15, 2010

i have 4 different handles buttons with code how can i connect them in another "general button" that will make the 4 buttons to work with one click

View 3 Replies

How To Make A Calculator

Nov 26, 2009

does anyone know what i need to do? if you do make a youtube video and post it in this post.

View 1 Replies

Inline Calculator For A Textbox?

Sep 16, 2010

I need a inline calculator for a textbox.

When the user types 45*10+5 i need to have the answer displayed as 455 in the same textbox

Any one with a briljant idea of how to sovle this.

View 9 Replies

How To Make A Zodiac Calculator

Jun 22, 2010

how to make a zodiac calculator, I know the basic codes that I need to insert, but I'm creating it in a windows application. The day and year are text boxes that the user can input that particular information, but the month is a drop-down box. My two questions are: Is it okay to delete the private sub of the day and year so I can combine them into one sub? And how do I get the months to show up individually in the code area? Or would I have to delete the drop-down box completely and make it like the day and year text boxes where the user can input the information themselves?

View 6 Replies

How To Make Calculator Like Win7 One

Mar 5, 2011

I mean not like windows xp which the number and signs are not in the same textbox, but like windows 7 which you can see the whole calculation before pressing equal, and i don't think that compute.datatable can do this because it's limited with the basic signs(+,-,/,*) and it doesn't include the other signs(like : sin,^,root,log), so how to make a calculator like windows 7 one?

View 2 Replies

Make A Calculator In VB 2008?

May 30, 2010

I have 3 buttons

+ is one button
- is one button
* is one button

I have three text boxes

firstnumber- is 1 box
secondnumber-is 2box
solution is- third box

View 2 Replies

VS 2010 - How To Make A Calculator

Jun 5, 2011

How to make this calculator:2 Texboxes In first textbox is writeble (where user will write the version) The second textbox is notwriteble ( there will show the result)In the first textbox to make calculation of version.If user writes for example: 1.03.11 In textbox2 to display the calculation: 22656 If the user writes for example other version:1.05.50 In textbox2 to display the calculation:22895and the same way if user writes 1.03.24 or other numbers auto to calculate the versions, and if user writes a bad text in tetbox2 to display error: For example In textbox1 user writes text: omg In textbox2 shows : Error
Only if user writes number like this: 1.03.11 or other number will calculate it else to shows error

View 16 Replies

Create A Simple Calculator Using Only 1 Textbox?

Mar 29, 2011

I want to create a simple calculator using only 1 textbox , 1 button and 1 label, but I don't know how to create the code.

for example if i write : 53+35-33=

and if i press the button it will calculate and the answer the label will show the answer (55).

View 3 Replies

VS 2010 : Make A Rank Calculator?

Sep 8, 2011

VS 2010 : make a Rank Calculator?

View 2 Replies

Geting Error Message While Trying To Make A Calculator

Apr 15, 2009

I posted this in the wrong part of the forums. Using visual basic 2008 and keep geting this message whenever I try and test this calculator program I've been mucking around with for the past 2 hours.

[Code]....

View 9 Replies

Make A Calculator That Accepts Multiple Operations?

May 29, 2010

I am trying to make a calculator that accepts multiple operations, similar to the calculator found on Windows.

View 6 Replies

Make A Simple Resistance Calculator For Practice?

Nov 21, 2009

I am trying to make a simple resistance calculator for practice. I use text boxes to let the user input the current and voltage, and then a combo box for the units and then a list box to display the results. For some reason no matter which units I select it doesn't convert at all. For example 1/2 will always show up as 0.5 in the list box no matter which units are selected from the combo box. Here is my code.....I know that there is more cases but I only put one to see if it works before I write all of the cases.

Public Class Form1
Dim unitsA As String
Dim unitsV As String

[code]....

View 1 Replies

Make CE (Clear Entry) Work In Calculator?

Nov 21, 2009

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
End Sub

This is to Clear all numbers but I don't know how to Clear just one number. for example i want to do 23 once a user clicks CE, i want to make it show 2

View 1 Replies

VS 2010 - How To Make Calculator Work To Use Only Keyboard

Aug 26, 2011

I'm new in the programming area and I'm having trouble making a calculator. My question is: How do I make the calculator work using only the keyboard, without the need of mouse.

I tried this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.KeyPreview = True
End Sub
Private Sub FlowLayoutPanel1_KeyDown(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyEventArgs) Handles RESULTADO.KeyDown
If e.KeyCode = Keys.NumPad0 Then
[Code] .....

It only works on the text box called Result. I want to know how do I make work in the whole Class, and if it is possible, to make it work on two different Classes without writing twice the same code.

View 6 Replies

VS 2010 Make A Game Statistics Calculator?

Jan 3, 2011

I want to make a game statistics calculator. For this I choose to make a XML database with the base stats of the characters.

I've made a small XML file in the VS2010 project with 1 class stats and made a list to 10 levels (to lazy atm to write all 85).

the XML looks like this:

<BASIC_CHARACTER_STATS>
<Levels>
<level id="1">1</level>

[Code]....

On the Form1.vb I've to combo boxes, 1 to display class names and 1 for levels.
Also have some Labels to display i.e. the base_STR number. But after trying random stuff to get it linked and closed VB to restart again because it was messed up too much

View 1 Replies

Scientific Calculator - Clear Textbox After Displaying Result

Jun 2, 2009

I am building a scientific calculator.
1. After I clicked the Sine button, I get the result in a textbox.. When the result is there, for example: 1 radians Sine = 0.8414.... I can still put numbers at the end of this result.. like button 5 will be 0.84145, so how can I disable that?
2. After I get the result from a calculation, the textbox should be cleared when I insert a new number.

View 7 Replies

VS 2010 Making A Calculator With 1 Textbox For Input And Answers?

Feb 5, 2012

so i am new to v basic and as you can see in the picture below that i have 2 textboxes just to put in them 2 numbers and then do mathematical calcualtions on them and a label up there that shows the answer so i wanted to make 1 textbox to type in the 1 st number then press the symbol for example + and then type the 2nd number and then press equal so the result is formed in the same textbox the only problem is idk how i searched google but i couldnt understand here is my source code

[Code]...

View 1 Replies

Make A Calculator That Adds From Two Text Boxes And Displays The Answer In Another Box?

Apr 23, 2010

I'm trying to make a calculator that adds from two text boxes and displays the answer in another box, but It gives an error when someone enters a character. What can I do to display a string error message in the third box if a letter is entered in one of the first two boxes instead of a number?

View 1 Replies

Make A Special Calculator Will Fall In Number In The Link Provided On The Website

Feb 14, 2011

I'm new to the forum and new to programming with Visual Basic Express 2010.I would like to built a special calculator.Calculator will fall in number in the link provided on the website.

[Code]...

View 16 Replies

Develop A Simple Math Calculator That Will Allow The User To Input The Right-hand-side (RHS) Of An Equation Into A Textbox?

Dec 12, 2011

I am trying to develop a simple math calculator that will allow the user to input the right-hand-side (RHS) of an equation into a textbox on the application and have the application evaluate the expression for a given value of x, which is also input
into the application by the user via another textbox.For example, if the user wants to evaluate the following expression,

y = 3 + 4*x + 5*x^2

then they would input into the textbox the RHS of the equation

3 + 4*x + 5*x^2

and then enter a value of x into the another textbox and click on the calculate button.I tried this:

answer = EquationTextBox.Text

but it doesn't work.

View 6 Replies

Resolution And Buttons - Tabs, Inside Each Tab There Are Buttons (the User Can Add The Buttons When They Want)

Mar 3, 2012

I have a piece of software with two tabs, inside each tab there are buttons (the user can add the buttons when they want). when tab1 is full tab2 should start to fill. I currently know how many buttons fit on the screen so I just say something like if buttons > 150 then start to populate tab 2 The problem i have now though is if the resolution is changed then a different amount of buttons can be displayed. so if I put my screen to 1280x720 some buttons are left of. I was thinking of detecting the resolution and then using different cases for different resolutions but this seems very inefficient im wondering if there is a different way?

View 5 Replies

How To Make A Buttons

Apr 1, 2009

Can somebody send me a sample code to my E-Mail. I want to know how to make a buttons to Visual Basic. I need a source code for two buttons and a number display. One button Increases the number. Othe Decreases the number. Can you send a code as a attachment to my E-Mail.

View 5 Replies

Click The Buttons And Linking To Put On The TextBox?

Apr 12, 2011

Ok so I have a launcher and I made my launcher a dialog box.On the dialog box there are 2 textbox and on my launcher there 2 buttons.So the "user" will put a link on the textbox and click save.now on my launcherwhen you click those buttons its will link you to what they putten on the TextBox.

View 26 Replies

Form With A Calendar And A Textbox With 2 Buttons

Mar 15, 2012

I have a form with a calendar and a textbox with 2 buttons. The calendar is the vb 2010 tool and the textbox overlaps it so that when a day is selected on the calendar you can make an appointment for that day. i have a save button and a back buton.I am having trouble with the save feature there is always a file error. [code]

View 1 Replies

Get All Radio Buttons,textbox's Ect To Stay On Only One Tab?

Mar 26, 2009

im using VS2005 and when using a tab control on my windows mobile 5 pocket pc emulator im creating a design but im unsure how to get all my radio buttons,textbox's ect to stay on only one tab? so when clicking tab 2 ect the next tab is clear ...

[URL]

View 1 Replies

How To Make Custom Buttons

Sep 18, 2010

Do you know of any tutorial that could help me make a custom button in vb.net. Because visual studio 2008 doesn't allow you to create buttons in circle or triangular shapes. I've tried searching and found this one but, I cannot make use of it because there are lots of errors.url...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved