hb technical blog
Home
Business
Internet
Market
Stock
Downloads
Dvd
Games
Software
Office
Parent Category
Child Category 1
Sub Child Category 1
Sub Child Category 2
Sub Child Category 3
Child Category 2
Child Category 3
Child Category 4
Featured
Health
Childcare
Doctors
Uncategorized
الاثنين، 7 أبريل 2014
Home
»
Apps By Me
,
Programming
,
VB.Net
» Visual Basic 2010 Tutorial: How to make a simple calculator
Visual Basic 2010 Tutorial: How to make a simple calculator
By
dr-hb
6:51 ص
No comments
Watch Tutorial :
Codes :
Public Class Form1 Dim FirstNumber As Single Dim SecondNumber As Single Dim AnswerNumber As Single Dim ArithmeticProcess As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = TextBox1.Text & 1 End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Text = TextBox1.Text & 2 End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = TextBox1.Text & 3 End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click TextBox1.Text = TextBox1.Text & 4 End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click TextBox1.Text = TextBox1.Text & 5 End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click TextBox1.Text = TextBox1.Text & 6 End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click TextBox1.Text = TextBox1.Text & 7 End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click TextBox1.Text = TextBox1.Text & 8 End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click TextBox1.Text = TextBox1.Text & 9 End Sub Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click FirstNumber = Val(TextBox1.Text) TextBox1.Text = "0" ArithmeticProcess = "+" End Sub Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click SecondNumber = Val(TextBox1.Text) If ArithmeticProcess = "+" Then AnswerNumber = FirstNumber + SecondNumber End If If ArithmeticProcess = "-" Then AnswerNumber = FirstNumber - SecondNumber End If If ArithmeticProcess = "X" Then AnswerNumber = FirstNumber * SecondNumber End If If ArithmeticProcess = "/" Then AnswerNumber = FirstNumber / SecondNumber End If TextBox1.Text = AnswerNumber End Sub Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click FirstNumber = Val(TextBox1.Text) TextBox1.Text = "0" ArithmeticProcess = "-" End Sub Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click FirstNumber = Val(TextBox1.Text) TextBox1.Text = "0" ArithmeticProcess = "X" End Sub Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click FirstNumber = Val(TextBox1.Text) TextBox1.Text = "0" ArithmeticProcess = "/" End Sub Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click TextBox1.Text = TextBox1.Text & "." End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click TextBox1.Text = TextBox1.Text & 0 End Sub End Class
Share:
Facebook
Twitter
Google+
إرسال بالبريد الإلكتروني
كتابة مدونة حول هذه المشاركة
المشاركة على X
المشاركة في Facebook
← رسالة أحدث
رسالة أقدم →
الصفحة الرئيسية
0 التعليقات:
إرسال تعليق
أحدث التعليقات
Popular
Tags
Blog Archives
Convert text into audio using notepad.......
# Notepad : a simple programme. But we can do lot's of things with this. we gave you more tricks from notepad here before. Today i going...
Send Fake Message To Your Droid
There may be a chance where you need a instant fake message to your mobile .So here’s app where you can send fake messages to your android...
Python Script for facebook Brute force Attact
This Script Only works on BackTrack ... Here are the steps Just Copy the below code save in the text Editor Change its Extension to fb.py &a...
Increase Your Facebook Page Likes Using Magic Tagging..
Magic box is a trick mostly used by the admins of Facebook pages. What is Magic Box : This trick is used for increasing likes or promot...
Password cracking: A mega collection of password cracking word lists
Best List of Hacking Dictionaries xD Well i was thinking to share some cracking stuff with you guys , The list i'm providing here its ...
Reverse Engineering In VB
Introduction In this tutorial we will go over working with targets written in Visual Basic. Unfortunately, to become a well-rounded reverse ...
55 Best Professional & SEO Optimized Blogger Templates
Heyy Guys .. I have got the Best 55 SEO Templates for You .. In the below table, there are four columns, first one is about item number, sec...
How to create a screen locker in VB.Net(Disable Alt+F4,Alt+Tab,Win Key etc)
In this tutorial we will see how to make a screen locker in vb.net with Alt+ Tab,Alt+ F4,Alt+ Esc,Windows key & Task Manager Disabled . ...
Make Money From Facebook Easily
Make Money From Facebook Easily Many people think it is not possible to generate a decent income from Facebook, they are thinking “Facebook ...
How Does Smartphones Work?
Smartphones exist in a the middle ground between a standard mobile phone, also known as a feature phone, and a full-fledged computer. Early ...
التسميات
Android Tricks
Apps By Me
Backtrack
Batch Programs
Blogging Tricks
C Plus-Plus
C Programs
Cracks
Downloads
Ethical Hacking
Facebook Tricks
Hacking Tools
Internet Tricks
Java
Javascript
Mobile Tricks
News
PC Tricks
PHP
Programming
Project
Python
Ubuntu
VB.Net
VB.Net Tutorial
أرشيف المدونة الإلكترونية
▼
2014
(68)
◄
مايو
(5)
▼
أبريل
(5)
Samsung mobile unlock codes & tricks
Free Domain Name Registration Sites
Create a simple keylogger for home use in VB.Net
BittOo's Keylogger
Visual Basic 2010 Tutorial: How to make a simple c...
◄
مارس
(12)
◄
فبراير
(9)
◄
يناير
(37)
◄
2013
(320)
◄
ديسمبر
(34)
◄
نوفمبر
(44)
◄
أكتوبر
(109)
◄
سبتمبر
(58)
◄
أغسطس
(73)
◄
يوليو
(2)
Recent Posts
Unordered List
Pages
الصفحة الرئيسية
Theme Support
0 التعليقات:
إرسال تعليق