
 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 29/12/2007 18:14:40 Date: Sat, 29 Dec 2007 11:14:40 +0700
This is from a learning project - never thought to ask these questions:
public partial class Form1 : Form
{
static String strFileName;
public PictureBox PictureBox1;
Bitmap bitmap = new Bitmap(strFileName);
QUESTION1 : What's the downside of static variables, memory usage? What kind of scope does a static variable have?
QUESTION2: Why would I use the format that I use for "bitmap" instead of the one for "PictureBox1"?
Vinnie.
|