Results 1 to 11 of 11

Thread: Reset form picture to nothing?

  1. #1
    hellswraith
    Guest

    Reset form picture to nothing?

    I accidently set this property to a picture, and I didn't want to. How to I reset it to nothing without doing it in code?

  2. #2
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    OK, Ill admit it ... when this happens to me I just paste some gray back into it to replace the picture.

    I'm not sure if there is a more proper way of doing it.

  3. #3
    hellswraith
    Guest
    Whew, thought I was the only one...lol.

    I feel like I am going to have to cut and paste everything into a new form just to undo this. Seems like a harsh punishment for such a small mistake.

    Anyone have a clue on how to do this?????

  4. #4
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    couldn't you just do form1.picture = loadpicture(""), or would that now work??
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

  5. #5
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869
    Originally posted by Skitchen8
    couldn't you just do form1.picture = loadpicture(""), or would that now work??
    It should...

    -C
    Unite, proletariat!

  6. #6
    hellswraith
    Guest
    Yes, but that would be in code, and that means that the picture is still going to be with the exe when I compile it. I don't like that. I am sure there is some way to do this without code.

  7. #7
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    oh, at design time when you click next to picture in the properties box (don't hit the ... thing) then hit either delete or bckspace, not sure which one.
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

  8. #8
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    Awesome,

    I no longer have to live in shame when I make this mistake

    I did check though, and the picture only stays with the project as part of the form. So if you had a 5 Mbyte picture the form would be about 5 Mbyte.

    However, if you pasted a gray patch over it, it would be replaced and the form size would be back to around 1 Kbyte.

    All kind of a moot point now, but it does make me feel better about past bloopers.


  9. #9

    another way

    Another way you could fix this problem would be to simply open your .frm file in Notepad and edit it. It's plain text so you can figure it out easy enough.

    Knowing this can be useful for other "mishaps" as well

  10. #10
    hellswraith
    Guest
    Thanks for your help guys, it is so simple that it makes me mad I didn't get it to work. All you have to do is highlight the (bitmap) part in the picture property, then hit the delete key.

    Thanks

  11. #11
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi Hellswrath
    Yeah it is actually quite easy in VB6 but this was a known problem in earlier versions of VB so u are not the first to fall foul of it. In VB3 it was almost pot luck as to whether the delete process would work. Microsoft had unwittingly created a random number generator
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

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