Draw rectangle inside panel in c# windows application
if a user enterd height,width to draw rectangle, they given values are more than panel height ,width means show msg box of yes,no. If user click yes means adjust the rectangle to draw rectangle within panel not to go outside the panel .... how to do this please anybosy hep me i am beginer

Amit GuptaRank #190 · 12.8K reputationPosted Nov 5, 2020, 3:05 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 4, 2020, 7:34 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 4, 2020, 8:54 PM EST
S JRank #7,785 · 234 reputationPosted Nov 4, 2020, 8:57 PM EST
S JRank #7,785 · 234 reputationPosted Nov 4, 2020, 10:38 PM EST
S JRank #7,785 · 234 reputationPosted Nov 5, 2020, 5:47 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 5, 2020, 7:12 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 5, 2020, 8:40 PM EST
S JRank #7,785 · 234 reputationPosted Nov 5, 2020, 11:34 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 5, 2020, 11:41 PM EST
- Fill your combobox with color names
- while drawing shapes, use dropdown's value.
- You are done
The more you search and practice, the more deeper knowledge will be yours.S JRank #7,785 · 234 reputationPosted Nov 6, 2020, 1:31 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 6, 2020, 2:33 AM EST
Rectangle rt = new Rectangle(100, 100, 200, 200);
g.FillRectangle(new SolidBrush(color), rt);
Amit GuptaRank #190 · 12.8K reputationPosted Nov 6, 2020, 3:06 AM EST
S JRank #7,785 · 234 reputationPosted Dec 1, 2020, 6:40 PM EST