Question Color Palete

Hossis

Member
Joined
Jan 3, 2015
Messages
6
Programming Experience
5-10
How I can create a panel of Color like this:

تصویر صفحه (3).png

this is a panel with subPanels that their Back Colours are different!
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,400
Location
Sydney, Australia
Programming Experience
10+
this is a panel with subPanels that their Back Colours are different!

Personally, I would use GDI+ (specifically the Graphics.DrawRectangle and .FillRectangle methods) to simply draw the colours onto a single control. You'd then handle the MouseClick event of that control and determine which rectangle, if any, was clicked.
 

Hossis

Member
Joined
Jan 3, 2015
Messages
6
Programming Experience
5-10
Personally, I would use GDI+ (specifically the Graphics.DrawRectangle and .FillRectangle methods) to simply draw the colours onto a single control. You'd then handle the MouseClick event of that control and determine which rectangle, if any, was clicked.
OK
Please give me a sample !
If I use "Mouseclick" then I can load a colored picture and determine clicked color.
Is this way correct?
 
Top Bottom