SlideShare a Scribd company logo
1 of 18
Download to read offline
Color Pallete (Visual Basic Assignment)
Presented By
Anushka Sharma
Bachelors of Computer Application
Dezyne E’cole College
Project report on
Color Pallete
Submitted To
Dezyne E’cole College
Towards
The Partial Fulfillment
Of 2018 year, Bachelor Of Computer Application, 3nd
year
By
Anushka Sharma
Dezyne E’cole College
106/10, Civil Line Ajmer
www.Dezyneecole.com
Acknowledgment
I Am Anushka Sharma Student of Bachelor Of Computer Application Dezyne E’cole
College Would Like To Express My Gratitude to Each And Every Person Who Has
Contributed In Stimulating Suggestions And Encouragement Which Really Helped
Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who Provided
Insight And Expertise That Greatly Assisted the Project. Also, a Special Thanks To
My Teachers, Parents and Colleagues Who Have Supported Me At Every Step. Not
To Forget, the Almighty Who Blessed Me With Good Health Because of Which I
Worked More Efficiently And Better.
In the following pages I am showcasing my work:
Color pallete
Code
Dim r, g, b As Integer
Private Sub VScroll1_Change()
Dim a(3), n, i, j, k, m, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text1.Text = r
i = 0
n = Val(VScroll1.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text4.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll1_Scroll()
Dim a(3), n, i, j, k, t, m As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text1.Text = r
i = 0
n = Val(VScroll1.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text4.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll2_Change()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text2.Text = g
i = 0
n = Val(VScroll2.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text5.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll2_Scroll()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text2.Text = g
i = 0
n = Val(VScroll2.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text5.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll3_Change()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text3.Text = b
i = 0
n = Val(VScroll3.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text6.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll3_Scroll()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text3.Text = b
i = 0
n = Val(VScroll3.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text6.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Thank you
Presented By
Anushka Sharma
Bachelor Of Computer Application, 3rd
year
Dezyne E’cole College

More Related Content

Similar to Color pallete

Scope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesScope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesEelco Visser
 
Monadologie
MonadologieMonadologie
Monadologieleague
 
Scala Functional Patterns
Scala Functional PatternsScala Functional Patterns
Scala Functional Patternsleague
 
Declarative Language Definition
Declarative Language DefinitionDeclarative Language Definition
Declarative Language DefinitionEelco Visser
 
C programming (Part 1)
C programming (Part 1)C programming (Part 1)
C programming (Part 1)dezyneecole
 
Retos de Programación en Python
Retos de Programación en PythonRetos de Programación en Python
Retos de Programación en PythonJavier Abadía
 
Crystal presentation in NY
Crystal presentation in NYCrystal presentation in NY
Crystal presentation in NYCrystal Language
 

Similar to Color pallete (8)

Scope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesScope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languages
 
Monadologie
MonadologieMonadologie
Monadologie
 
Scala Functional Patterns
Scala Functional PatternsScala Functional Patterns
Scala Functional Patterns
 
Declarative Language Definition
Declarative Language DefinitionDeclarative Language Definition
Declarative Language Definition
 
C programming
C programmingC programming
C programming
 
C programming (Part 1)
C programming (Part 1)C programming (Part 1)
C programming (Part 1)
 
Retos de Programación en Python
Retos de Programación en PythonRetos de Programación en Python
Retos de Programación en Python
 
Crystal presentation in NY
Crystal presentation in NYCrystal presentation in NY
Crystal presentation in NY
 

Recently uploaded

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 

Recently uploaded (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Color pallete

  • 1. Color Pallete (Visual Basic Assignment) Presented By Anushka Sharma Bachelors of Computer Application Dezyne E’cole College
  • 2. Project report on Color Pallete Submitted To Dezyne E’cole College Towards The Partial Fulfillment Of 2018 year, Bachelor Of Computer Application, 3nd year By Anushka Sharma Dezyne E’cole College 106/10, Civil Line Ajmer www.Dezyneecole.com
  • 3. Acknowledgment I Am Anushka Sharma Student of Bachelor Of Computer Application Dezyne E’cole College Would Like To Express My Gratitude to Each And Every Person Who Has Contributed In Stimulating Suggestions And Encouragement Which Really Helped Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who Provided Insight And Expertise That Greatly Assisted the Project. Also, a Special Thanks To My Teachers, Parents and Colleagues Who Have Supported Me At Every Step. Not To Forget, the Almighty Who Blessed Me With Good Health Because of Which I Worked More Efficiently And Better.
  • 4. In the following pages I am showcasing my work: Color pallete
  • 5. Code Dim r, g, b As Integer Private Sub VScroll1_Change() Dim a(3), n, i, j, k, m, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text1.Text = r i = 0 n = Val(VScroll1.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B"
  • 6. ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F" Else
  • 7. j = a(0) End If Text4.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll1_Scroll() Dim a(3), n, i, j, k, t, m As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text1.Text = r i = 0 n = Val(VScroll1.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then
  • 8. k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F"
  • 9. Else j = a(0) End If Text4.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll2_Change() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text2.Text = g i = 0 n = Val(VScroll2.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A"
  • 10. ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then
  • 11. j = "F" Else j = a(0) End If Text5.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll2_Scroll() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text2.Text = g i = 0 n = Val(VScroll2.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then
  • 12. k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E"
  • 13. ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text5.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll3_Change() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text3.Text = b i = 0 n = Val(VScroll3.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0
  • 14. If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then
  • 15. j = "E" ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text6.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll3_Scroll() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text3.Text = b i = 0 n = Val(VScroll3.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend
  • 16. k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D"
  • 17. ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text6.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub
  • 18. Thank you Presented By Anushka Sharma Bachelor Of Computer Application, 3rd year Dezyne E’cole College