One last thing i swear!!

This is a discussion on One last thing i swear!! within the C# Programming forums, part of the General Programming Boards category; In the program i posted about earlier, i have also included 2 picture files (i think one is a gif ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    16

    One last thing i swear!!

    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:
    Code:
    private void button1_MouseOver(object sender, EventArgs e)
            {
            Form1.BackgroundImage.Dispose(); // ?
            Form1.BackgroundImage=(@"c:\*.jpg"); //??
            }
    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.

    //edit
    Also checked code project, and Csharp-station and nothing on this.
    Last edited by fingerlickin; 08-19-2005 at 12:04 PM.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    16
    oops
    Last edited by fingerlickin; 08-19-2005 at 02:27 PM.

  3. #3
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    Does the 2005 express beta 2 expire. And is it true that you are not allowed to publish anything you make.
    I started out with nothing and I still have most of it left.

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    16
    Actually, it looks like since i registered it (using my hotmail account) i can only publish the programs i write. I thought i was able to create .exe files but, maybe im thinking of 2003? i dunno. that kinda bites though. So, back to the original question lol make that im using 2003 cause i dont have an ftp to publish to lol

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pause/idle thing
    By freedik in forum Windows Programming
    Replies: 13
    Last Post: 08-22-2003, 10:46 AM
  2. A very strange thing
    By gustavosserra in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2003, 01:43 PM
  3. most challenging thing to program
    By volk in forum A Brief History of Cprogramming.com
    Replies: 52
    Last Post: 03-28-2003, 03:56 PM
  4. newbie needs help comprehending simple thing
    By A helpless one in forum C++ Programming
    Replies: 6
    Last Post: 12-16-2002, 09:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21