There are number of calculators available . If you want to make a Basic calculator in .NET Then you can surf a number of Calculators code on the Internet . But If you have used the calculators come in Microsoft-Windows PC's Then you can notice these are best , easy to operate and can accept no of operators one time as these are advanced calculators . So make a calculator similar to these calculators come in Microsoft-Windows PC's is logical way of developing a calculator. I have tried a simple calculator That only does Addition , Substration, Division and Multiplication of integers and Fractional numbers .
Showing posts with label VisualBasic.NET. Show all posts
Showing posts with label VisualBasic.NET. Show all posts
Sunday 1 September 2013
Sunday 7 July 2013
Introduction To Visual Basic - II
VISUAL BASIC AS OOPS ( Object Oriented Programming )
In this world , Every thing is an object and every object has a type known as a class. In object oriented programming
In this world , Every thing is an object and every object has a type known as a class. In object oriented programming
Introduction To Visual Programming
The Field of visual Programming has grown from a marriage of work in Computer Graphics, Programming languages and Human - Computer Interaction. As the fields of Visual Programming
Thursday 4 July 2013
USING TEXT FILES IN VB.NET (VISUAL STUDIO 2010)
USING TEXT FILES IN VB.NET (VISUAL STUDIO 2010)
Wednesday 3 July 2013
What is XML
HTML and XML are brother and sister. Their mother is SGML
Tuesday 2 July 2013
Date Difference Am to Pm Visual Basic.NET
Instructions To Operate Date Difference Am to Pm
* First Enter Date 'Hr', 'Min' and 'Sec' TextBox In First Row
* Also Choose "Am/Pm" from ComboBox In first Row
* Now Put Check Mark on "Submit checkbox "
* Similarly Enter 'Hr', 'Min' and 'Sec' TextBox In Second Row
* Choose "Am/Pm" from ComboBox In Second Row
* Then click on Submit checkbox in second Row
NOTE :- It is must to Click on Submit ChekBox After Entering Data at Respective Rows
* Finally click on "Get Date diff" Button .
* Also Choose "Am/Pm" from ComboBox In first Row
* Now Put Check Mark on "Submit checkbox "
* Similarly Enter 'Hr', 'Min' and 'Sec' TextBox In Second Row
* Choose "Am/Pm" from ComboBox In Second Row
* Then click on Submit checkbox in second Row
NOTE :- It is must to Click on Submit ChekBox After Entering Data at Respective Rows
* Finally click on "Get Date diff" Button .
Download Date Difference Am to Pm App
Download Date diff
Working Date Difference Am to Pm :-
1. In Fig.1 you can see the structure of Date diff App.
2. It also consist of combo Box To select Am/Pm Time .
3. After filling values in Text Boxes Its necessary to put check mark on check box "submit" .
It display date entered .
4. Finally click on Button Get date diff and it display date on Date-Diff labelled textboxes.
CODE FOR Date Difference Am to Pm
Public Class Form1
Public gethr, getmin, getsec, gethr1, getmin1, getsec1, total1, total2, finaltotal, hr1, hr2, diffhr, min1, sec1 As Integer
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked = True Then
TextBox10.Text = TextBox10.Text + "-" + TextBox1.Text + "-" + TextBox2.Text + "-" + TextBox3.Text + "-" + ComboBox1.SelectedText
gethr = Val(TextBox1.Text.ToString)
getmin = Val(TextBox2.Text.ToString)
getsec = Val(TextBox3.Text.ToString)
total1 = (gethr * 3600) + (getmin * 60) + (getsec)
End If
End Sub
Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged
If CheckBox2.Checked = True Then
TextBox11.Text = TextBox11.Text + "-" + TextBox4.Text + "-" + TextBox5.Text + "-" + TextBox6.Text + "-" + ComboBox2.SelectedText
gethr1 = Val(TextBox4.Text.ToString)
getmin1 = Val(TextBox5.Text.ToString)
getsec1 = Val(TextBox6.Text.ToString)
total2 = (gethr1 * 3600) + (getmin1 * 60) + (getsec1)
If ComboBox1.SelectedIndex = 0 And ComboBox2.SelectedIndex = 1 Then
total1 = total1 + 12 * 3600
ElseIf ComboBox1.SelectedIndex = 1 And ComboBox2.SelectedIndex = 0 Then
total1 = total1 + 12 * 3600
ElseIf ComboBox1.SelectedIndex = 0 And ComboBox2.SelectedIndex = 0 Then
total1 = total1
ElseIf ComboBox2.SelectedIndex = 0 And ComboBox1.SelectedIndex = 0 Then
total1 = total1
End If
finaltotal = (Math.Abs(total1 - total2))
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("Am")
ComboBox1.Items.Add("Pm")
ComboBox2.Items.Add("Am")
ComboBox2.Items.Add("Pm6")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If finaltotal <= 60 Then
TextBox7.Text = "0"
TextBox8.Text = "0"
TextBox9.Text = Math.Floor(finaltotal)
ElseIf finaltotal > 60 And finaltotal < 3600 Then
TextBox7.Text = "0"
TextBox8.Text = Math.Floor(finaltotal / 60)
TextBox9.Text = Math.Floor(finaltotal Mod 60)
ElseIf finaltotal >= 3600 Then
hr1 = Math.Floor(finaltotal / 3600)
TextBox7.Text = hr1
hr2 = hr1 * 3600
diffhr = finaltotal - hr2
min1 = Math.Floor(diffhr / 60)
TextBox8.Text = min1
sec1 = finaltotal Mod 60
TextBox9.Text = sec1
End If
End Sub
End Class
Conversion Functions VB.NET
Visual Basic supports a number of ways of converting from one type to another. The conversion function would take such a value , String, expression and attempt to convert it. It the conversion
Monday 1 July 2013
Numeric Functions in VB.NET
Numeric Funcitons provides various function to be operated on integer or numeric variables to get Required result. Main Numeric Functions in VB.NET are :-
Friday 28 June 2013
String Functions VB.NET
1. Len Function :- The Len function returns the length of the string variable given as argument to
Thursday 27 June 2013
Writing first program in VB.NET
First application will be named
HelloWorld
Wednesday 26 June 2013
Commom Language Runtime (CLR) In VB.NET
It is common managed environment where all the .net programs run. Supports multiple languages and has garbage collection.
Tuesday 25 June 2013
FROM VB6 TO VB.NET
The switch form the old visual studio versiom6 to newer Visual Studio .NET to Create Visual BAsic
programs represents a update in technology . It represents far more than changing of a version name. When upgrading from Visual Studio 6 , Instead of naming it version , Microsoft used the term .NET as the name of the new version to denate the difference that it carries from the older technology .Faculty members teaching programming courses in visual basic have to learn about the changes in new version of visual basic in order to Switch from teaching the older vb6.
programs represents a update in technology . It represents far more than changing of a version name. When upgrading from Visual Studio 6 , Instead of naming it version , Microsoft used the term .NET as the name of the new version to denate the difference that it carries from the older technology .Faculty members teaching programming courses in visual basic have to learn about the changes in new version of visual basic in order to Switch from teaching the older vb6.
Monday 24 June 2013
Registration Instructions for Visual Basic 2010 Express Software
Registration Instructions for Visual Basic 2010 Express Software
Registration of the Visual Basic 2010 Express software is required by Microsoft within 30 days of installation.
Registration is free!
Friday 21 June 2013
Installation of Microsoft Visual Studio 2010
Microsoft Visual Studio is a Software Development Tools Kit Developed By "Microsoft Corporation" . Microsoft Visual studio similarly to its previous components consist of Integrated
Thursday 20 June 2013
INTRODUCTION TO VISUAL STUDIO 2010
Visual Basic 2010 is the latest version of Visual Basic launched by Microsoft in 2010. It
is almost similar to Visual Basic 2008 but it has added many new features. Visual Basic
has gone through many phases of development since the days of BASIC that was built
for DOS. BASIC stands for Beginners' All-purpose Symbolic Instruction Code.
Wednesday 19 June 2013
Declare Variable in SQL
VARIABLES :- Variables are particular amount of memory area that are used to store the data values required to get producing the desired output from the program or SQL query . But Before using or allowing these variable to hold the specified data values we must declare them . The Declaration Statement of variable also tells the type of data that the variable will hold.
Tuesday 18 June 2013
Create Functions in SQL
Functions provide a good way to group some set of statements under a particular valid Function -Name that can used in various portions in Program . Functions allows us to use particular set of statements that will be used a number of times in different portions of program by single name. A particular set of statements used to perform specific function and
Monday 17 June 2013
Friday 14 June 2013
Joins in SQL
Joins in Structured Query Language (S Q L) are used to Store and Retrieve data from two or more Tables . Joins Store and Retrieve data On the basis of given Join Condition. The Given Join condition tells how and which data to retrieve / store in and from Database Tables.
Wednesday 12 June 2013
datediff in sql
Structured Query Language Provides Several Functions to perform date and time related operations. These functions allow you to add dates , times. To Find difference between dates and time etc.
1. CurrentDate :- Current Date is used to display current date according to date set in computer system.
1. CurrentDate :- Current Date is used to display current date according to date set in computer system.
Subscribe to:
Posts (Atom)
Followers
Popular Posts
-
Sqlite Database is the best way of providing portability to our database . Sqlite database is well know for the conditions when developers ...
-
Necessity is the advent of everything today while doing some project i got requirement from my client to show the categories of the product...
-
Quick Sort is a Sorting Algorithm based on Divide And Conquer Technique. In this at every step element is placed in its proper position....