'first of open a new window form
then insert a 8 label , 2 textbox and 6 buttons
change the all tools text properties like and arrange all buttons and textbox.
then double click one the form and create a variable.
then double click on the buttons and write a coding.
then create a menu from a toolbox and write a text for a menu
then save a program and run
-~-–~-~~-~-
The Coding Bus
How to link one page to another page in HTML
https://youtu.be/GmzUr4Tdeb0
- How to create a calculator in visual basic. Below is the code to create a calculator in visual basic. This is the GUI program where the user will enter the number in the input text field and the output generates accordingly. Create a calculator application in visual basic.
- How to Make a Calculator With Visual Basic Step 1. Open Visual Basic 6, and select 'Standard EXE' from the new project menu. You will see a blank form appear on. Rename your project and your form by clicking on 'Project1' at the right hand side of the screen, in the project.
Since, Visual Basic.Net provides features where you can create quickapplication in a minute. In this tutorial, I'll show you how to create simple calculator in Visual Basic.Net. Unfortunately, it only covers very simple calculation with four arithmetic operators such as Addition, Subtraction, Multiplication, and Division. Once you have installed Visual Studio from start a new project. Select 'Windows Forms Application' from Visual Basic Tab. You can rename it here if you need to. Once you click 'OK', you will see this window: Click on the 'Toolbox' tab on the left. The toolbar has 'auto-hide' option enabled by default.
How to create a simple Home Design program in java Applet
https://youtu.be/oLtG5vNI7WA
Difference between Core JAVA VS Advanced JAVA
https://youtu.be/iR3uxTlE7nw
How to change Form background color in Runtime in VB.net
https://youtu.be/Ewd9Ow_qmsE
How to create the Rainbow in Java Applet
https://youtu.be/gjGq9zKTZpg
How to create a game in visual basic(Ant hit game in vb)
https://youtu.be/MdhwSYo8qNk
https://youtu.be/y3Rq-w5UQzY
Marksheet program in C language
The Coding Bus
qwertyuiopasdfghjklzxcvbnm
How to install wordpress in xampp step by step
https://www.youtube.com/watch?v=YdwMhXX-FLE
How to create menu and submenu in wordpress
https://www.youtube.com/watch?v=PACC3farNPY
https://www.youtube.com/watch?v=8kG3JTbGAbw
How to install wordpress theme with demo data free
How to change footer copyright in wordpress
https://www.youtube.com/watch?v=3oIkPWYXyyQ
How to change footer widget in wordpress
https://www.youtube.com/watch?v=1HbnBbZX9tA
How to backup & restore your wordpress website in 3 minutes free 2018
https://www.youtube.com/watch?v=pSr5w4U36c8
How to use the revolution slider plugin with Button Link – full tutorial 2018
https://www.youtube.com/watch?v=KMBFxOlObx4
https://www.youtube.com/watch?v=z5jbofGMOHM
How to add new user role in wordpress
How To Add YouTube Video To Your WordPress Website 2018
https://www.youtube.com/watch?v=jCWQ7oA2bBA
How to add contact form 7 in wordpress page
https://www.youtube.com/watch?v=E9U27FOPNyo
How to change favicon in wordpress theme
https://www.youtube.com/watch?v=uvczOIqdVYk
How to use tubebuddy on youtube – 2018 full tutorial
https://www.youtube.com/watch?v=N1zpn3sT-2o
How to add additional css in wordpress 2018
https://www.youtube.com/watch?v=2L7lHf_0C-E
qwertyuiopasdfghjklzxcvbnm
-~-–~-~~-~- How to create an app for free using your mobile phone 2019
https://youtu.be/VxmK-giIyGA
How to delete history in google chrome 2019 android
https://youtu.be/2YJqas7Dwno
how to create camera app in mit app inventor 2
https://youtu.be/o-bYys8v9g4
how to redirect http to https in WordPress website
https://youtu.be/dLrsJboGzRg
More How To Create A Calculator In Visual Basic Videos
How to install wordpress in xampp step by step
https://youtu.be/YdwMhXX-FLE?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
How to add youtube video to wordpress website
https://youtu.be/YdwMhXX-FLE?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
how to create child theme in WordPress 2019
https://youtu.be/zM-CT9wFtw8?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
sdfhfdghjhjlqwerqwes werte qwexvnkl #USA lsdkfjsdlkfjd dfkajsdlfj lkdjsflkdjfdls visual studio tutorial
visual studio code tutorial
visual studio c# tutorial
visual basic programming tutorial
visual studio for beginners
visual c++ tutorial
visual studio 2015 tutorial for beginners
visual studio 2017 tutorial
xamarin tutorial visual studio 2017
visual c# tutorial
visual studio c++ tutorial
visual basic codes for beginners
visual studio introduction
visual studio code tutorial pdf
visual studio android app tutorial
visual basic 2010 tutorial pdf
visual basic 2010 tutorial
c# web application tutorial visual studio 2017
visual studio 2017 android app tutorial
visual basic 2017 tutorial
visual studio 2017 python tutorial
microsoft visual studio tutorial
visual studio team services tutorial
visual studio 2017 tutorials for beginners pdf visual studio tutorial
visual studio code tutorial
visual studio c# tutorial
visual basic programming tutorial
visual studio for beginners
visual c++ tutorial
visual studio 2015 tutorial for beginners
visual studio 2017 tutorial
xamarin tutorial visual studio 2017
visual c# tutorial
visual studio c++ tutorial
visual basic codes for beginners
visual studio introduction
visual studio code tutorial pdf The Coding Bus #unitedstates
VB.NET GUI
Basic Calculator
In the previous sections, we displayed text in console window (black background window). In this section, you will learn to use window forms and other useful components and controls to create GUI applications that increase interactivity.
Visual Basic Simple Calculator Code
Step1: Create a project (Windows Forms Application)
File->New-> Project...Step2: Design interface
-Click on Toolbox in the left site to extend it. You will a list of controls as shown in below:
-Drag and drop one textbox and rename it to txtbox(change text in Name field of the properties window to txtbox).
Note: To open Properties window of a control, right-click the control and click Properties.
-Drag and drop 21 command buttons
-Rename button0 to cmd0, button1 to cmd1, button2 to cmd2, button3 to cmd3, button4 to cmd4, button5 to cmd5, button6 to cmd6, button7 to cmd7, button8 to cmd8, button9 to cmd9, button10 to cmdequal, button11 to cmdclear, button 12 to cmdadd, button13 to cmdsubtract, button14 to cmdmultiply, button15 to cmddivide, button16 to cmdsquare, button17 to cmdsqtr, button 18 to cmdcos, button19 to cmd sin, button20 to cmdtan.
-The caption of each button also needs to be changed. For example, you need to change the caption of button0 to 0, button1 to 1, button 2 to 2...etc.
Step3: Write code
To attach code to a control, you need to double-click the control to open code editor. And then you just copy code and paste it.
'Declaring global variables in General section of the form
Dim sign As String
Dim val1 As Double
Dim val2 As Double
Private Sub cmd0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd0.Click
txtbox.Text = txtbox.Text & cmd0.Caption 'get 0
End Sub
Private Sub cmd1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd1.Click
txtbox.Text = txtbox.Text & cmd1.Caption 'get 1
End Sub
Private Sub cmd2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd2.Click
txtbox.Text = txtbox.Text & cmd2.Caption 'get 2
End Sub
Private Sub cmd3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd3.Click
txtbox.Text = txtbox.Text & cmd3.Caption 'get 3
End Sub
Private Sub cmd4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd4.Click
txtbox.Text = txtbox.Text & cmd4.Caption 'get 4
End Sub
Private Sub cmd5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd5.Click
txtbox.Text = txtbox.Text & cmd5.Caption 'get 5
End Sub
Private Sub cmd6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handle cmd6.Click
txtbox.Text = txtbox.Text & cmd6.Caption 'get 6
End Sub
Private Sub cmd7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd7.Click
txtbox.Text = txtbox.Text & cmd7.Caption 'get 7
End Sub
Private Sub cmd8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd8.Click
txtbox.Text = txtbox.Text & cmd8.Caption 'get 8
End Sub
Private Sub cmd9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd9.Click
txtbox.Text = txtbox.Text & cmd9.Caption 'get 9
End Sub
Private Sub cmdclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdclear.Click
'clear Texts
txtbox.Text = '
val1 = 0
val2 = 0
sign = '
End Sub
Private Sub cmdcos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdcos.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Cos(v)
aa: Exit Sub
End Sub
Private Sub cmddivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddivide.Click
sign = '/'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdequal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdequal.Click
On Error GoTo aa
val2 = CDbl(txtbox.Text)
If (sign = '+') Then
txtbox.Text = val1 + val2
ElseIf (sign = '-') Then
txtbox.Text = val1 - val2
ElseIf (sign = '*') Then
txtbox.Text = val1 * val2
Else: txtbox.Text = val1 / val2
End If
aa: Exit Sub
End Sub
Private Sub cmdmultiply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdmultiply.Click
sign = '*'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdplus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdplus.Click
sign = '+'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdsin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsin.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Sin(v)
aa: Exit Sub
End Sub
Private Sub cmdsqare_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsquare.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = v ^ 2
aa: Exit Sub
End Sub
Private Sub cmdsqrt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsqrt.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Sqr(v)
aa: Exit Sub
End Sub
Private Sub cmdsubtract_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsubtract.Click
sign = '-'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdtan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdtan.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Tan(v)
aa: Exit Sub
End Sub
Private Sub txtbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtbox.KeyPress
-~-–~-~~-~-
The Coding Bus
How to link one page to another page in HTML
https://youtu.be/GmzUr4Tdeb0
- How to create a calculator in visual basic. Below is the code to create a calculator in visual basic. This is the GUI program where the user will enter the number in the input text field and the output generates accordingly. Create a calculator application in visual basic.
- How to Make a Calculator With Visual Basic Step 1. Open Visual Basic 6, and select 'Standard EXE' from the new project menu. You will see a blank form appear on. Rename your project and your form by clicking on 'Project1' at the right hand side of the screen, in the project.
Since, Visual Basic.Net provides features where you can create quickapplication in a minute. In this tutorial, I'll show you how to create simple calculator in Visual Basic.Net. Unfortunately, it only covers very simple calculation with four arithmetic operators such as Addition, Subtraction, Multiplication, and Division. Once you have installed Visual Studio from start a new project. Select 'Windows Forms Application' from Visual Basic Tab. You can rename it here if you need to. Once you click 'OK', you will see this window: Click on the 'Toolbox' tab on the left. The toolbar has 'auto-hide' option enabled by default.
How to create a simple Home Design program in java Applet
https://youtu.be/oLtG5vNI7WA
Difference between Core JAVA VS Advanced JAVA
https://youtu.be/iR3uxTlE7nw
How to change Form background color in Runtime in VB.net
https://youtu.be/Ewd9Ow_qmsE
How to create the Rainbow in Java Applet
https://youtu.be/gjGq9zKTZpg
How to create a game in visual basic(Ant hit game in vb)
https://youtu.be/MdhwSYo8qNk
https://youtu.be/y3Rq-w5UQzY
Marksheet program in C language
The Coding Bus
qwertyuiopasdfghjklzxcvbnm
How to install wordpress in xampp step by step
https://www.youtube.com/watch?v=YdwMhXX-FLE
How to create menu and submenu in wordpress
https://www.youtube.com/watch?v=PACC3farNPY
https://www.youtube.com/watch?v=8kG3JTbGAbw
How to install wordpress theme with demo data free
How to change footer copyright in wordpress
https://www.youtube.com/watch?v=3oIkPWYXyyQ
How to change footer widget in wordpress
https://www.youtube.com/watch?v=1HbnBbZX9tA
How to backup & restore your wordpress website in 3 minutes free 2018
https://www.youtube.com/watch?v=pSr5w4U36c8
How to use the revolution slider plugin with Button Link – full tutorial 2018
https://www.youtube.com/watch?v=KMBFxOlObx4
https://www.youtube.com/watch?v=z5jbofGMOHM
How to add new user role in wordpress
How To Add YouTube Video To Your WordPress Website 2018
https://www.youtube.com/watch?v=jCWQ7oA2bBA
How to add contact form 7 in wordpress page
https://www.youtube.com/watch?v=E9U27FOPNyo
How to change favicon in wordpress theme
https://www.youtube.com/watch?v=uvczOIqdVYk
How to use tubebuddy on youtube – 2018 full tutorial
https://www.youtube.com/watch?v=N1zpn3sT-2o
How to add additional css in wordpress 2018
https://www.youtube.com/watch?v=2L7lHf_0C-E
qwertyuiopasdfghjklzxcvbnm
-~-–~-~~-~- How to create an app for free using your mobile phone 2019
https://youtu.be/VxmK-giIyGA
How to delete history in google chrome 2019 android
https://youtu.be/2YJqas7Dwno
how to create camera app in mit app inventor 2
https://youtu.be/o-bYys8v9g4
how to redirect http to https in WordPress website
https://youtu.be/dLrsJboGzRg
More How To Create A Calculator In Visual Basic Videos
How to install wordpress in xampp step by step
https://youtu.be/YdwMhXX-FLE?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
How to add youtube video to wordpress website
https://youtu.be/YdwMhXX-FLE?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
how to create child theme in WordPress 2019
https://youtu.be/zM-CT9wFtw8?list=PL7sbjUYIdF3Ueka8gN7sNX8VoBKoBYSFJ
sdfhfdghjhjlqwerqwes werte qwexvnkl #USA lsdkfjsdlkfjd dfkajsdlfj lkdjsflkdjfdls visual studio tutorial
visual studio code tutorial
visual studio c# tutorial
visual basic programming tutorial
visual studio for beginners
visual c++ tutorial
visual studio 2015 tutorial for beginners
visual studio 2017 tutorial
xamarin tutorial visual studio 2017
visual c# tutorial
visual studio c++ tutorial
visual basic codes for beginners
visual studio introduction
visual studio code tutorial pdf
visual studio android app tutorial
visual basic 2010 tutorial pdf
visual basic 2010 tutorial
c# web application tutorial visual studio 2017
visual studio 2017 android app tutorial
visual basic 2017 tutorial
visual studio 2017 python tutorial
microsoft visual studio tutorial
visual studio team services tutorial
visual studio 2017 tutorials for beginners pdf visual studio tutorial
visual studio code tutorial
visual studio c# tutorial
visual basic programming tutorial
visual studio for beginners
visual c++ tutorial
visual studio 2015 tutorial for beginners
visual studio 2017 tutorial
xamarin tutorial visual studio 2017
visual c# tutorial
visual studio c++ tutorial
visual basic codes for beginners
visual studio introduction
visual studio code tutorial pdf The Coding Bus #unitedstates
VB.NET GUI
Basic Calculator
In the previous sections, we displayed text in console window (black background window). In this section, you will learn to use window forms and other useful components and controls to create GUI applications that increase interactivity.
Visual Basic Simple Calculator Code
Step1: Create a project (Windows Forms Application)
File->New-> Project...Step2: Design interface
-Click on Toolbox in the left site to extend it. You will a list of controls as shown in below:
-Drag and drop one textbox and rename it to txtbox(change text in Name field of the properties window to txtbox).
Note: To open Properties window of a control, right-click the control and click Properties.
-Drag and drop 21 command buttons
-Rename button0 to cmd0, button1 to cmd1, button2 to cmd2, button3 to cmd3, button4 to cmd4, button5 to cmd5, button6 to cmd6, button7 to cmd7, button8 to cmd8, button9 to cmd9, button10 to cmdequal, button11 to cmdclear, button 12 to cmdadd, button13 to cmdsubtract, button14 to cmdmultiply, button15 to cmddivide, button16 to cmdsquare, button17 to cmdsqtr, button 18 to cmdcos, button19 to cmd sin, button20 to cmdtan.
-The caption of each button also needs to be changed. For example, you need to change the caption of button0 to 0, button1 to 1, button 2 to 2...etc.
Step3: Write code
To attach code to a control, you need to double-click the control to open code editor. And then you just copy code and paste it.
'Declaring global variables in General section of the form
Dim sign As String
Dim val1 As Double
Dim val2 As Double
Private Sub cmd0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd0.Click
txtbox.Text = txtbox.Text & cmd0.Caption 'get 0
End Sub
Private Sub cmd1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd1.Click
txtbox.Text = txtbox.Text & cmd1.Caption 'get 1
End Sub
Private Sub cmd2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd2.Click
txtbox.Text = txtbox.Text & cmd2.Caption 'get 2
End Sub
Private Sub cmd3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd3.Click
txtbox.Text = txtbox.Text & cmd3.Caption 'get 3
End Sub
Private Sub cmd4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd4.Click
txtbox.Text = txtbox.Text & cmd4.Caption 'get 4
End Sub
Private Sub cmd5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd5.Click
txtbox.Text = txtbox.Text & cmd5.Caption 'get 5
End Sub
Private Sub cmd6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handle cmd6.Click
txtbox.Text = txtbox.Text & cmd6.Caption 'get 6
End Sub
Private Sub cmd7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd7.Click
txtbox.Text = txtbox.Text & cmd7.Caption 'get 7
End Sub
Private Sub cmd8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd8.Click
txtbox.Text = txtbox.Text & cmd8.Caption 'get 8
End Sub
Private Sub cmd9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd9.Click
txtbox.Text = txtbox.Text & cmd9.Caption 'get 9
End Sub
Private Sub cmdclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdclear.Click
'clear Texts
txtbox.Text = '
val1 = 0
val2 = 0
sign = '
End Sub
Private Sub cmdcos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdcos.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Cos(v)
aa: Exit Sub
End Sub
Private Sub cmddivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddivide.Click
sign = '/'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdequal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdequal.Click
On Error GoTo aa
val2 = CDbl(txtbox.Text)
If (sign = '+') Then
txtbox.Text = val1 + val2
ElseIf (sign = '-') Then
txtbox.Text = val1 - val2
ElseIf (sign = '*') Then
txtbox.Text = val1 * val2
Else: txtbox.Text = val1 / val2
End If
aa: Exit Sub
End Sub
Private Sub cmdmultiply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdmultiply.Click
sign = '*'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdplus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdplus.Click
sign = '+'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdsin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsin.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Sin(v)
aa: Exit Sub
End Sub
Private Sub cmdsqare_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsquare.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = v ^ 2
aa: Exit Sub
End Sub
Private Sub cmdsqrt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsqrt.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Sqr(v)
aa: Exit Sub
End Sub
Private Sub cmdsubtract_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsubtract.Click
sign = '-'
On Error GoTo aa
val1 = CDbl(txtbox.Text)
txtbox.Text = '
aa: Exit Sub
End Sub
Private Sub cmdtan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdtan.Click
Dim v As Double
On Error GoTo aa
v = CDbl(txtbox.Text)
txtbox.Text = Math.Tan(v)
aa: Exit Sub
End Sub
Private Sub txtbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtbox.KeyPress
'Allow only number, dot, and backspace characters
How To Create A Calculator In Visual Basic
If Asc(e.KeyChar) >= Asc('0') And Asc(e.KeyChar) <= Asc('9') Or Asc(e.KeyChar) = 8 Or Asc(e.KeyChar) = 46 Then
Exit Sub
Else
e.KeyChar = '
End If
End Sub
Visual Basic Tip Calculator
Comments
How To Use Visual Basic
Akshay I have one problem, 2015-10-01 |
gowdhami sree this pgm is very useful 2015-08-11 |
david j A tutorial clearly explained showing beginning OO relationships in Forms 2015-01-19 |
nansa thank u soo much.it's really help me 2014-07-31 |
Larry Hello friends.........I have also searched for good tutorial on making calculator. 2014-02-22 |