Posts

Mod 9 Activity

Public Class     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         Label1.Text = Format(8972.234, "General Number")         Label2.Text = Format(8972.2, "Fixed")         Label3.Text = Format(6648972.265, "Standard")         Label4.Text = Format(6648972.265, "Currency")         Label5.Text = Format(0.56324, "Percent")     End Sub Public Class     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         Label1.Text = Format(8972.234, "0.0")         Label2.Text = Format(8972.2345, "0.00")         Label3.Text = Format(6648972.265, "#,##0.00")         Label4.Text = Format(6648972.265, "$#,##0.00")         Label5.Text = Format(0.56324, "0%")     End Sub End Class Public Class     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Mod 8

The Check box is a very useful control in Visual Basic 2010. It allows the user to select one or more items by checking the checkbox or checkboxes concerned. For example, in the Font dialog box of any Microsoft Text editor like FrontPage,

Mod 10

The Check box is a very useful control in Visual Basic 2010. It allows the user to select one or more items by checking the checkbox or checkboxes concerned. For example, in the Font dialog box of any Microsoft Text editor like FrontPage,

module 7 Activity 1

Image
activity 1

module 7

A function is similar to a normal procedure but the main purpose of the function is to accept  a certain input and return a value, which is passed on to the main program to finish the  execution. There are two types of functions, the built-in functions (or internal functions) and  the functions created by the programmers.  The general format of a function is   FunctionName (arguments)  The arguments are values that are passed on to the function.  In this Chapter, we are going to learn two very basic but useful internal functions of Visual  Basic, i.e. the MsgBox( ) and InputBox ( ) functions.  Summary  You learned that a function is a procedure that accepts an input and returns a value,  which is passed on to the main program to finish the execution. You also learned  that the format of a function is FunctionName (arguments).  In section 10.1, you learned to use the Msg () function to produce a popup  message box to prompt the user to click on a button to continue the  execution. In se

module 6 activity 1

none.

Module 6

Controlling Program Flow In this chapter, you learned how to use the If control structure together with the  comparison operators to control program flow.   In section 7.1, you learned how to use the conditional operators in VB2010 such  as =, <,>, >=, <= and <>.  In section 7.2, you learned how to use the logical operators And, Or, Xor and  Not.   In section 7.3, you learned how to implement three types of If control structure,  i.e. If...Then, If...Then...Else and If...Then...ElseIf Select Case Control Structure In this chapter, you learned how to control program flow using the Select Case control  structure. You also learned how to write code for the practical usage of the Select Case  control structure, such as the program that processed examination marks. Looping Summary   In section 9.1, you learned how to write code for the For...Next loop. The loop  stops when a condition is met. You also learned how to use Exit For to exit  the loop.  In section 9.2, you lear