13. Write a VB program to design a form that display a gradient as its background (gradient direction can be horizontal or vertical)

Private Sub Command1_Click()
Command1.Picture = LoadPicture(“C:\Program Files\Microsoft Visual Studio\COMMON\Graphics\Icons\Industry\PLANE.ico”)
End Sub

Private Sub Command2_Click()
Command1.Enabled = False
Command1.Picture = LoadPicture(“C:\Program Files\Microsoft Visual Studio\COMMON\Graphics\Icons\Industry\CARS.ico”)
End Sub


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s