it is possible to adjust the size of a rectangle which is drawn in a picturebox with drawrectangle function.. During run time i want to adjust my rectangle width using numericupdown control..
thank u
Home / DeveloperSection / Forums / how to adjust the size of drawn rectangle at runtime
Madhu Mitha
01-Apr-2015Anonymous User
30-Mar-2015According to my understanding about your problem scenario, you want to increase height and width according to the numericupdown control on click
Try this code:
I hope it will work for u !! J
Madhu Mitha
30-Mar-2015Anonymous User
27-Mar-2015' Rectangle to draw
This code will allow you to create, move, and clear a rectangle. One point of caution is in the calculations for changing the size of the rectangle, you have to ensure exception handling is properly inserted for any arithmetic exceptions.