Today I will give an example of a simple program using Visual Basic.
Create a design form as follows:
And enter the following code:
A few posts today, good luck.
Create a design form as follows:
And enter the following code:
Private Sub Option1_Click()Label1.ForeColor = vbRedEnd SubPrivate Sub Option2_Click()Label1.ForeColor = vbBlueEnd SubPrivate Sub Option3_Click()Label1.ForeColor = vbYellowEnd SubPrivate Sub Option4_Click()Label1.ForeColor = vbBlackEnd SubPrivate Sub Option10_Click()Label1.FontSize = 12End SubPrivate Sub Option11_Click()Label1.FontSize = 14End SubPrivate Sub Option5_Click()Me.BackColor = vbWhiteLabel1.BackStyle = 0End SubPrivate Sub Option6_Click()Me.BackColor = vbGreenLabel1.BackStyle = 0End SubPrivate Sub Option7_Click()Me.BackColor = vbMagentaLabel1.BackStyle = 0End SubPrivate Sub Option8_Click()Label1.FontSize = 8End SubPrivate Sub Option9_Click()Label1.FontSize = 10End Sub
A few posts today, good luck.
Title : VB Simple Program
Description : Today I will give an example of a simple program using Visual Basic. Create a design form as follows: And enter the following co...
Description : Today I will give an example of a simple program using Visual Basic. Create a design form as follows: And enter the following co...
0 Response to "VB Simple Program"
Posting Komentar