Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
LinkedIn
Online Members
sunil kumar sharma
Shanthi M
More...
Join our online
Google+ community
for Bloggers, Content Writers and Webmasters
Resources
»
Code Snippets
»
VB.NET Syntax
Color Dialog
Posted Date:
11-Nov-2008
Category:
VB.NET Syntax
Author:
Abraham Kuriakose
Member Level:
Gold
Points
: 4
Using color dialog to select color and get rgb values
place a color dialog on to the form
If dlgcolor.ShowDialog() = Windows.Forms.DialogResult.OK Then
PictureBoxcolor.BackColor = dlgcolor.Color
sbred.Value = dlgcolor.Color.R.ToString
sbgreen.Value = dlgcolor.Color.G.ToString
sbblue.Value = dlgcolor.Color.B.ToString
txtred.Text = dlgcolor.Color.R.ToString
txtgreen.Text = dlgcolor.Color.G.ToString
txtblue.Text = dlgcolor.Color.B.ToString
End If
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "Color Dialog"
Author:
srinivasa reddy tatikonda
09 Jan 2009
Member Level:
Silver
Points
: 2
Private Sub btnPickColor_Click(ByVal sender As _
System.Object, _
ByVal e As System.EventArgs) Handles btnPickColor.Click
dlgColor.Color = Me.BackColor
If dlgColor.ShowDialog() = DialogResult.OK Then
btnPickColor.BackColor = dlgColor.Color
Me.BackColor = dlgColor.Color
End If
End Sub
Best Regards
Srinivasa Reddy
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Move Window by Dragging the Client Area of the Form
Previous Resource:
Winsock Component
Return to Resources
Post New Resource
Category:
VB.NET Syntax
Post resources and
earn money
!
More Resources
Move Window by Dragging the Client Area of the Form
RichTextBoxes having Text Indentation
Horizontal Scroll ListBoxes in VB.NET
Handling PictureBox Events in VB.NET
Handling Label Events in VB.NET
Converting strings to numbers in VB.NET
Popular Tags
Tag posting guidelines
Search Tags
Colordialog
.
Follow us on Twitter:
https://twitter.com/dotnetspider
Active Members
Today
naveensanagase...
(15)
musathik
(12)
malika
(4)
Last 7 Days
baskar
(279)
Asheej T K
(203)
srisunny
(187)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.