What to draw in?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What's the best object to draw into (aside from a form)? I'm currently using a panel, but is there something maybe better? A picturebox

Thanks
 
Panel is your best bet. Stay away from PictureBox

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

Yaron said:
What's the best object to draw into (aside from a form)? I'm currently
using a panel, but is there something maybe better? A picturebox?
 
You may also be interested in this article
http://www.bobpowell.net/creategraphics.htm

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

Yaron said:
What's the best object to draw into (aside from a form)? I'm currently
using a panel, but is there something maybe better? A picturebox?
 
Hi Bob

Thanks for the reply

I just went to your webpage, and subscribed to your WellFormed newsletter. The only thing I'm wondering is, how would I be able to access previous editions? February's Non-client drawing article is something I would really want to get a look at

Thanks

Yaron
 
Care to qualify that with some more information for the more ignorant among
us? I mean, surely there's a reason you say to "stay away from PictureBox."

Pete
 
Hello,

You can get back-issues from inside but February is the current issue. March
is still in work.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

Yaron said:
Hi Bob,

Thanks for the reply.

I just went to your webpage, and subscribed to your WellFormed newsletter.
The only thing I'm wondering is, how would I be able to access previous
editions? February's Non-client drawing article is something I would really
want to get a look at.
 
Many people incorrectly use PictureBox as a placeholder for graphics. This
causes problems because it clears the background and causes flicker. The
lighter weight the control the better.

PictureBox and it's misuse is the reason for the most frequently asked
question
http://www.bobpowell.net/picturebox.htm (my favourite rant :-)) )

To explain how to choose and use a Graphics object I also provide this...
http://www.bobpowell.net/creategraphics.htm


--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
Back
Top