Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<img src="http://i40.tinypic.com/2zhi0s3.gif" border="0" width="300px" height="200px" alt="Image and video hosting by TinyPic">
How can draw this Board Border and Checkers?
My checker is flat but this Checker is rounded ,like 3D.
How can fix this?
Posted

1 solution

Draw it in Photoshop then use the Picturebox, the picturebox has click events just like a button.
 
Share this answer
 
Comments
Umut Comlekcioglu 18-May-13 10:31am    
No, Thanks for answer but Checkers must be dynamic color and type.So picturebox not enough.
Ron Beyer 18-May-13 11:23am    
Then use an image list for each of the checker states? The only other way is to override the button as a custom control then overide the OnPaint method to draw the button yourself. You will also need to know what state the button is in (Hovered, Pressed, Released, Focused, etc) in order to draw it correctly. The easiest way to do what you want is to draw it in an image editing software (even for all the states), then just use a PictureBox and change the image to match the state of the checker. All the other functionality you need is there like OnClick or OnDoubleClick just like a button.
Umut Comlekcioglu 18-May-13 13:18pm    
But how can draw this Button? I know Custom Control, OnPaint and other events, but I can't draw this graphics...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900