Posts

Visual Basic Examples

Image
Program 1:- To create Visual Basic application to find the area of rectangle. Code:-  Private Sub Command1_Click() Text3.Text = Text1.Text * Text2.Text End Sub Private Sub Command2_Click() Text1.Text = " " Text2.Text = " " Text3.Text = " " End Sub /*************************Output**************************/ Program 2:- To create Visual Basic application to average of 3 numbers. Design Window:- Code:- Private Sub Command1_Click() Text4.Text = Str((Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)) / 3) End Sub Private Sub Command2_Click() Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " End Sub Private Sub Command3_Click() Unload Me End Sub /*************************Output**************************/ Program 3: To create Visual Basic application to illustrate Date-Time functions. Code:- Private Sub Command1_Click () Text1.Text = Dat...

Qiuz Try It

Quiz :- 1. What does HTML stand for? Hyper Text Markup Language Home Tool Markup Language Hyperlinks and Text Markup Language Click here to Submit 2. Who is making the Web standards? Google The World Wide Web Consortium Microsoft Click here to Submit 3.Choose the correct HTML tag for the smallest heading:- <h6> <heading> <h1> Click here to Submit 4. What is the correct HTML tag for drawing horizontal line? <lb> <br> <hr> Click here to Submit 5.Inside which HTML element do we put the JavaScript? <script> <js> <javascript> Click here to Submit 6What is the correct JavaScript syntax to write "Hello World"? response.write("Hello World"); document.write("Hello World"); echo "Hello World"; Click here to Submit 7.Where is the correct place to insert a JavaScript? Both the <head> section and the <body> section are correct ...