Case 6 MsgBox Friday Case 7 MsgBox Saturday visual End Select End Sub Example 8: write a program to give the programs evaluation for different marksas follows: mark evaluation 90-100 Excellent 80-89 Very good 70-79 Good 60-69 Medium 50-59 Pass 0-49 FailDim x As IntegerPrivate Sub Command1_Click.
Else structure: Used for running many programmingstatements if the required condition satisfied.
Shape: Shape is a tool used to draw geometric shape (circle, rectangle, square,etc).C) To put code for tool action: Double click on tool code sheet of basic the Form appears (with code of corresponding tool is written) User write the desired code inside tool event, or outside in output Form event.The most familiar properties that are needed for the command button are stated in the table below.Q5/design a form "at run stage" with the title of form1 will be change to "visual basic" andthe back color of form1 will change too.4- It is able to connect to Internet, and to call Explorer.Exercises:Q.1: write a program to find n factorial (n!)Q.2: write a program to enter n numbers and find the average of negative numbersonly.Sign in, available only to authorized users, add this document to saved.Notes: a) Each tool has a property window.To see this window: Click on tool on form Property window appears.In a range (0-1) Input - output boxes There are two types of dialog boxes which are inputbox and messagebox.When basic the user selects one of themthe output others are deselected automatically. G- Form Layout Window: The Form Layout window is a small screen.
4 Microsoft Corporation indo 147 Freeware, this application plugs-in to Visual Basic to analyze your code.
Visual basicprogram can create many types of projects.
All other properties of this control are similar to those in form and sent commandbutton where they are fully discussed which are caption, font, basic enabled, backcolor andvisible beside an important property which is value that takes true or false and it usedwith if statement.
Hide Runshow To show the form ow Runicon Change the icon on title bar of form (the icon must have the extension ico or cur).
TimerTimer returns the time in millisecond.
To add outlook tool: double click on tool.Text Xto label tool ptionxBy message box msgbox (x) Or msgbox remark" x)The instruction print could be very helpful outlook to display data and used asfollows:Code Description exampleprint To leave one line and print on nextPrint desktop "a "b "c" Use to print a distance.Write code in thisevent or other events like press key event.Sol: Text1: text"excellent" Command1: caption"Private Sub Command1_Click MsgBox (ckColor QBColor(9)Text1.Text " "End Sub Or we can write the following code:Private Sub Command1_Click X Text1.TextMsgBox (X)ckColor QBColor(9)Text1.Text " "End Sub.Menu The menu is a bar at the top of the form.Variables A variable is a space in memory filled with data (value, character, timeor date).Notes:- Variable name must start with character (not number or function) andmaximum length 256 character, and does not contain point or symbol.- Variable name must not repeat for other e variable.A form automatically appears in the form design.The basis for any applications i n t e r f a c e is t h e form that user should create.Introductory video lesson to Visual Basic 2008 Express Edition.The user selects the required event then code statementsare written inside these event procedures.Label: It is used to display fixed text on form Property Objective Code Stage programs of Changing nameCaption String appear on label ption "any name" Design and runAutosize To resize tool to fit text tosize true or false Design and runBackcolor Background color for label ckcolorQbcolor(no.).These loops should neither intersect, nor have the same index.Private Sub Command3_Click x Val(Text1.Text)y Int(x)Text1.Text CStr(y)End SubPrivate Sub Command4_Click x Val(Text1.Text)y Sin(x *.14159 / 180)Text1.Text CStr(y)End SubPrivate Sub Command5_Click x Val(Text1.Text)y Cos(x *.14159 / 180)Text1.Text CStr(y)End SubRunning stage.Using the form designer, the user can add controls, graphics, and text to create the desired form appearance.Pianosoft 4 Freeware, mobileAudioConvert ActiveX Control can be used in Visual Basic, Visual C, etc.