M
MS
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.
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.