What could be Output of Program given below :-
Monday 19 August 2013
Sunday 11 August 2013
Add/ Remove Recent item on Start Menu
Add/ Remove Recent item on Start Menu
Add Recent item on Start Menu
Fix Access Denied Error
Fix Access Denied Error
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
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....