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!
 
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.
 
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?
 
Back
Top