return color
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
i'm making a custom color dialog and i cant seem to find a way to return the selected color.
i need some kind of function like the the one in the standard color dialog(label1.forecolor = StandardColorDialog.SelectedColor)
so any help would be appreciated
i need some kind of function like the the one in the standard color dialog(label1.forecolor = StandardColorDialog.SelectedColor)
so any help would be appreciated
Last edited by XTechVB on Sun Jun 03, 2012 12:35 pm, edited 1 time in total.
You can find me on Facebook or on Skype mihai_92b
This should do
Code: Select all
ColorDialog1.ShowDialog()
PictureBox1.BackColor = ColorDialog1.Color
AnoPem wrote:This should doi need a function like the "SelectedColor" in the standard color dialog
Code: Select allColorDialog1.ShowDialog() PictureBox1.BackColor = ColorDialog1.Color
You can find me on Facebook or on Skype mihai_92b
Add a property in your custom dialog.
Code: Select all
When the user changes his/her choice, update the selected with this code:
Public Property SelectedColor As Color
Code: Select all
When your dialog closes, you can use SelectedColor = NewColor
Code: Select all
Form1.BackColor = MyCustomColorDialog.SelectedColor
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023