Welcome Guest Search | Active Topics | Members | Log In | Register

declarations - newbie question Options · View
MS
Posted: Saturday, December 29, 2007 6:14:40 PM


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.


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.068 seconds.