-
Hiyas,
I don't know too much about VB, but I'm hoping this'll be easy enough for someone to answer.
I have form with an Image, and I have opened a BMP into the Image. The FRX file is quite big though, about 500 kb, and when I compile the EXE it's about 400 kb as well.
My questions are :
1. Is the FRX file a sort of resources file with 'built in' stuff rather than stuff just loaded during runtime?
2. Is the BMP compiled with the EXE rather than just being left in it's original location and being accessed for loading?
3. Is there any way to keep it in the original location without it getting compiled in the EXE? I thought maybe putting LoadPicture blah blah blah in Form_Load, but it could be a pain if I add more images (I'm planning to).
Thanks,
-Git
-
1) The frx file contains all the graphics in the form.
2) The picture is compiled into the exe.
3) You could have a directory called "Pictures" or something in the directory you're exe is stored in. Then you'd do this to load the picture.
Code:
Set Picture1.Picture = LoadPicture(App.Path & "\Pictures\WhateverPicture.bmp")
If you have many large pictures, this is preferable, since a large exe would take longer to execute.
//Anders
-
Thanks. =) Just converted it over, seems to work just as quick uncompiled. I'll compile and test it soon.
Btw, how do you capture what a user types? Eg. for cheat codes, how do you detect that?
-Git
-
you mean while the person is using your program?
or like a keylogger or something?
-
Yeah, basically just something which monitors key strokes or whatever...
-Git