Results 1 to 4 of 4

Thread: Is this a bug or something just for me?

  1. #1

    Thread Starter
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169

    Question Is this a bug or something just for me?

    I am having an interesting little problem, and I am wondering if anyone else has had a problem of this nature.

    If I put a picturebox on a form, set the image property in the property window, the picture loads fine. When I run the app the picturebox and picture show beifly and then disappear.

    If I set the picture from the load event (or somewhere else in code) everything works fine.

    I am running XP. Does anyone else have this type of problem, or have any ideas of what may resolve this issue. I have reinstalled and that has had no effect.

    Thanks for any ideas.

    That which does not kill us, only makes us stronger.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm, I have Windows XP too and I tried what you said. It works fine, doesnt disappear
    Maybe if you posted a sample project people could help you better
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Just as I was about to post the project for you I found out what the problem was.

    As I went to post the project files, I wanted to make sure it still wasn't working. It worked.

    What happened is this... if I add a picturebox, set the image, and then run the app without saving the project, it won't work. If I save the project and then run the app it works.

    This sounds kind of dumb, I didn't know I had to save the project before I ran it. I thought building the project would be enough. After all it saves the exe in the bin folder just by running it.

    Thanks for the info and the help!
    That which does not kill us, only makes us stronger.

  4. #4
    Lively Member
    Join Date
    Jan 2001
    Location
    Bradenton, FL
    Posts
    87
    Sounds like something you could change in the IDE. I think it's called "Build & Run options" or something like that. Check under Tools | Options | Environment
    You should be able to select something like a 'Save before Running' option.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width