TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ayesha ahmad
NA
6
8.2k
Fill a Rectangle in Windows Application C#
Jul 24 2013 2:42 AM
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
Reply
Answers (
6
)
Populating listbox control and textbox control from database
drag drop on pdfviewer using axacropdf in windows form c#