Anay Dev VB - NET Practical File
Anay Dev VB - NET Practical File
NET
BATCH 2019-2022
STEPS: -
1. On the start window, choose Create a new project.
2. On the Create a new project window, enter or type Windows Forms in the search box
.Next choose Desktop from the Project type list.
After you apply the Project type filter, choose the Windows Forms App(.Net Framework)
template for either C# or Visual Basic, and then choose Next.
3. I
n
the Configure your new project window, type or enter name of your project you want in
the Project Name Box. Then choose, Create.
4. Design the form using different controls & write the code using code window. Then save
the project by selecting File -> save option. To run the project press F5 or start debugging
option. It opens the form in the run mode.
Output: -
Output: -
EndIf
EndSub
EndSub
PrivateSub Form1_Load(sender AsObject, e AsEventArgs) HandlesMyBase.Load
EndSub
EndClass
Output: -
Output: -
Output: -
ForEachiIn al
Console.Write("{0} ", i)
Nexti
Console.WriteLine()
Console.Write("Sorted Content: ")
al.Sort()
ForEachiIn al
Console.Write("{0} ", i)
Nexti
Console.WriteLine()
Console.ReadKey()
EndSub
EndModule
Output: -
Output: -
Output: -
Output: -
PublicSubSalary(ByValsalAsInteger)
Dim s AsInteger
s = (0.3 * sal) + (0.5 * sal) + sal
MsgBox(s)
EndSub
PublicSubExperience(ByVal exp AsInteger)
exp = 2020 - exp
MsgBox(exp)
EndSub
PublicSubDisplay(ByVal Name AsString, ByVal Id AsInteger, ByVal Age AsInteger)
emp_id = Id
emp_age = Age
emp_name = Name
MsgBox("ID : "&emp_id&System.Environment.NewLine&
"Name : "&emp_name&System.Environment.NewLine&
"Age : "&emp_age)
EndSub
EndClass
PrivateSub Button1_Click(sender AsObject, e AsEventArgs) Handles Button1.Click
DimsalAsInteger
sal = Val(TextBox4.Text)
e1.Salary(sal)
EndSub
PrivateSub Button2_Click(sender AsObject, e AsEventArgs) Handles Button2.Click
Dim exp AsInteger
exp = InputBox("Enter year of joining : ")
e1.Experience(exp)
EndSub
PrivateSub Button3_Click(sender AsObject, e AsEventArgs) Handles Button3.Click
Dim name AsString
Dim Id, Age AsInteger
Id = Val(TextBox1.Text)
name = (TextBox2.Text)
Age = Val(TextBox3.Text)
e1.Display(name, Id, Age)
EndSub
EndClass
Output: -
Output: -
PublicClassForm1
PrivateSub Form1_Load(sender AsObject, e AsEventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'Q24_vbDataSet.CUSTOMER_TABLE' table. You
can move, or remove it, as needed.
Me.CUSTOMER_TABLETableAdapter.Fill(Me.Q24_vbDataSet.CUSTOMER_TABLE)
EndSub
EndClass
Output: -
Output: -
Output: -
PublicClassForm1
PrivateSub Form1_Load(sender AsObject, e AsEventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'Q24_vbDataSet.CUSTOMER_TABLE' table. You
can move, or remove it, as needed.
Me.CUSTOMER_TABLETableAdapter.Fill(Me.Q24_vbDataSet.CUSTOMER_TABLE)
EndSub
EndClass
Output: -
Output: -
Code: -
Output: -