hi,
I have made a rectangle on my windows form using Rectangle Class.
Problem is that its width is 200 and height is 100.
I only want to fill the 4th part of rectangle means 50px out of total width 200px with brown colour.
System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(Color.Brown);
Rectangle rec = new Rectangle(0, 0, 200, 100);
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.FillRectangle(myBrush, rec);
Any help will be highly appericated
Thanks
Loading
VulpesPosted Jul 24, 2013, 8:32 AM
Iftikar HussainPosted Jul 24, 2013, 8:25 AM
Try like this
borderStyle,borderColor,borderWidth,borderStyle,borderColor,borderWidth,borderStyle,
borderColor,borderWidth,borderStyle);
Regards,
Iftikar
ayesha ahmadPosted Jul 24, 2013, 8:09 AM
VulpesPosted Jul 24, 2013, 6:41 AM
ayesha ahmadPosted Jul 24, 2013, 6:16 AM
Kunal VaishyaPosted Jul 24, 2013, 4:40 AM