[.net] C# Form background image
I have created a new form with a tiled background image. (It was created by VS2005 when I set the image in the properties tab) What I would like to know is if there is a way to turn the image off and on whenever i need to. I've checked all the variables and functions in the form class but can't seem to find one that can do this.
image1 = new Bitmap(@"C:\Documents and Settings\All Users\" + @"Documents\My Music\music.bmp", true);
form.BackgroundImage = image1;
to hide the image.
form.BackgroundImage = null;
to show
form.BackgroundImage = image1;
theTroll
form.BackgroundImage = image1;
to hide the image.
form.BackgroundImage = null;
to show
form.BackgroundImage = image1;
theTroll
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement