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 GuptaPosted Nov 5, 2020, 8:05 AM
S JPosted Dec 1, 2020, 11:40 PM
Amit GuptaPosted Nov 6, 2020, 8:06 AM
Amit GuptaPosted Nov 6, 2020, 7:33 AM
Rectangle rt = new Rectangle(100, 100, 200, 200);
g.FillRectangle(new SolidBrush(color), rt);
S JPosted Nov 6, 2020, 6:31 AM
Amit GuptaPosted Nov 6, 2020, 4:41 AM
- 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 JPosted Nov 6, 2020, 4:34 AM
Amit GuptaPosted Nov 6, 2020, 1:40 AM
Amit GuptaPosted Nov 6, 2020, 12:12 AM
S JPosted Nov 5, 2020, 10:47 PM
S JPosted Nov 5, 2020, 3:38 AM
S JPosted Nov 5, 2020, 1:57 AM
Amit GuptaPosted Nov 5, 2020, 1:54 AM
Amit GuptaPosted Nov 5, 2020, 12:34 AM