1. Visual basic Assignment
Submitted By
Sachin Foujdar
BCA – 3rd Year
Dezyne E’ cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
A WORK REPORT SUBMITTED
IN PARTIAL FULLFILLMENT OF THE REQUIREMENT FOR
THE DEGREE
Bachelor of Computer Application
2. Acknowledgement
This application(ColorPalette) create in “Visual Basic” was developed at
Dezyne E’cole College.
The Following code represent is based on event driven programming
concept that are based on concept of event that are perform and executed
at run time.
During the making of this project I have learnt a lot and I thank my mentor
Mr. Tarun Sharma for helping us during the making of project.
I thank my college “Dezyne E’cole College” for having conducted this
“Identity” exhibition for helping us to bring out our skill.
With due Regards,
Sachin Foujdar
BCA 3rd Year
3. In the following pages I am showcasing my work.
Dim r, g, b As Integer
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Text1_Change()
If (Text1.Text >= 255) Then
MsgBox "invalid value"
End If
End Sub
Source Code
COLOR PALETTE
4. Private Sub Text2_Change()
If (Text2.Text >= 255) Then
MsgBox "invalid value“
End If
End Sub
Private Sub Text3_Change()
If (Text3.Text >= 255) Then
MsgBox "invalid value"
End If
End Sub
Private Sub VScroll1_Change()
r = VScroll1.Value
Label1.BackColor = RGB(r, g, b)
Text1.Text = r
End Sub
Private Sub VScroll2_Change()
g = VScroll2.Value
Label1.BackColor = RGB(r, g, b)
Text2.Text = g
End Sub
Private Sub VScroll3_Change()
b = VScroll2.Value