Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Obtaining a picture file from the app path into a button

0 views
Skip to first unread message

John Fu

unread,
May 20, 2001, 7:27:10 AM5/20/01
to
I currently have a button, and I want to place a picture, namely,
"face.gif", inside the button.

Of course, I can always just do so by browsing the directory tree, and
adding the link there... but my problem is, I have to move this project to
another computer when the time comes for me to hand this project in for
assessing. So how do I set the cmdButton.Picture = "face.gif"?

Please note again that face.gif is placed in the same directory as my
project... which should be app.path.

Thanks a million to whom ever can help me with this.

John.


J French

unread,
May 21, 2001, 4:34:46 AM5/21/01
to
At design time when you load a picture into a Control then the picture
is *copied* into the project - you can delete "face.gif" and the
picture is still there - it is in the FRX file

You could of course use the LoadPicture function at runtime

If I were you I would ensure that all source and code is in 'known'
directories so you just need to zip those to move them to another PC

On Sun, 20 May 2001 11:27:10 GMT, "John Fu" <zenk...@hotmail.com>
wrote:

0 new messages