|
-
Aug 13th, 2001, 01:44 PM
#1
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?
-
Aug 13th, 2001, 01:52 PM
#2
PowerPoster
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.
-
Aug 13th, 2001, 01:59 PM
#3
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?????
-
Aug 13th, 2001, 02:00 PM
#4
Frenzied Member
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
-
Aug 13th, 2001, 02:04 PM
#5
Fanatic Member
Originally posted by Skitchen8
couldn't you just do form1.picture = loadpicture(""), or would that now work??
It should...
-C
-
Aug 13th, 2001, 02:05 PM
#6
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.
-
Aug 13th, 2001, 02:08 PM
#7
Frenzied Member
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
-
Aug 13th, 2001, 02:17 PM
#8
PowerPoster
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.
-
Aug 13th, 2001, 02:32 PM
#9
New Member
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
-
Aug 13th, 2001, 04:49 PM
#10
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
-
Aug 13th, 2001, 05:23 PM
#11
PowerPoster
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|