Hybridoma Technology ( Production , Purification , and Application )
Part 12 built in function vb.net
1. Visual BASIC .NET 2012
PART 12- Built-in-Function
Dr. GIRIJA NARASIMHAN 1
This slides are available http://slideshare.net /nbgirija
This tutorial available in youtube:
https://www.youtube.com/watch?v=rKUu8tI8MFM
2. Dr. GIRIJA NARASIMHAN 2
This tutorial only for beginners , those
who don’t have any knowledge about
any programming language skill and
application design.
4. Dr.GIRIJA NARASIMHAN 4
CODING
Public Class Form1
Private Sub Label11_Click_1(sender As Object, e As EventArgs) Handles Label11.Click
Dim c, s, r As String
c = InputBox("enter the word")
TextBox2.Text = c
s = InputBox("Enter the string to be replaced")
r = InputBox("enter the new string to replace")
TextBox1.Text = Replace(c, s, r)
End Sub
Private Sub Label10_Click(sender As Object, e As EventArgs) Handles Label10.Click
Dim c As String
c = InputBox("enter the word")
TextBox2.Text = c
TextBox1.Text = StrReverse(c)
End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
Dim c, s As Double
s = Val(InputBox("enter the number"))
TextBox2.Text = s
c = s
TextBox1.Text = Math.Abs(s)
End Sub
5. Dr.GIRIJA NARASIMHAN 5
Private Sub Label9_Click(sender As Object, e As EventArgs) Handles Label9.Click
Dim c, r As Integer
Dim s As String
s = InputBox("enter the word")
TextBox2.Text = c
c = Val(InputBox("enter the starting position"))
r = Val(InputBox("enter the end position"))
TextBox1.Text = Mid(s, c, r)
End Sub
Private Sub Label7_Click(sender As Object, e As EventArgs) Handles Label7.Click
Dim c As Integer
Dim s As String
s = InputBox("enter the word")
TextBox2.Text = s
c = Val(InputBox("enter the starting position"))
TextBox1.Text = Microsoft.VisualBasic.Left(s, c)
End Sub
Private Sub Label8_Click(sender As Object, e As EventArgs) Handles Label8.Click
Dim c As Integer
Dim s As String
s = InputBox("enter the word")
TextBox2.Text = s
c = Val(InputBox("enter the starting position"))
TextBox1.Text = Microsoft.VisualBasic.Right(s, c)
6. Dr.GIRIJA NARASIMHAN 6
Private Sub Label6_Click(sender As Object, e As EventArgs) Handles Label6.Click
Dim c As Integer
Dim s As String
s = InputBox("enter the word")
TextBox2.Text = s
TextBox1.Text = Len(s)
End Sub
Private Sub Label5_Click(sender As Object, e As EventArgs) Handles Label5.Click
Dim c, s As Integer
s = Val(InputBox("enter the first number"))
c = Val(InputBox("enter the second number"))
TextBox2.Text = s
TextBox1.Text = c
MessageBox.Show("The highest number is " & Math.Max(s, c))
End Sub
Private Sub Label4_Click(sender As Object, e As EventArgs) Handles Label4.Click
Dim c, s As Integer
s = Val(InputBox("enter the first number"))
c = Val(InputBox("enter the second number"))
TextBox2.Text = s
TextBox1.Text = c
MessageBox.Show("The highest number is " & Math.Min(s, c))
End Sub
7. Dr.GIRIJA NARASIMHAN 7
Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click
Dim c, s As Integer
s = Val(InputBox("enter the number"))
' c = Val(InputBox("enter the second number"))
TextBox2.Text = s
TextBox1.Text = Math.Sqrt(s)
End Sub
Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click
Dim c, s As Double
s = Val(InputBox("enter the number"))
TextBox2.Text = s
c = s
TextBox1.Text = Math.Round(c, 2)
End Sub
End Class