In the program i posted about earlier, i have also included 2 picture files (i think one is a gif and the other a jpg). I was wondering as i have found out how to load the image on build, i would like to know what members or the Form can i use to change the image to the other picture; toggling between images on event?
i would imagine it would be similar to:
something like this? im really not sure; i know what i want to do but i couldnt find anything on the msdn site about changing the image. The only article there is how to add one and that at build time not run time.Code:private void button1_MouseOver(object sender, EventArgs e) { Form1.BackgroundImage.Dispose(); // ? Form1.BackgroundImage=(@"c:\*.jpg"); //?? }
//edit
Also checked code project, and Csharp-station and nothing on this.