469,366 Members | 2,428 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

maybe weird question

For on or an other reason i couldnt find where a imag eor a picture object
stores the path to a picture (For exampe if i type in a text box c:\pic.jpg
where must i say that the pic box realy shows the pic)
hope this is understandable sinc ei am not english :)

aterlamia
Jul 17 '05 #1
3 1712
Do you mean where the picture is stored when the filename is typed into the
Picture property window at design time? It's stored in a .FRX file that has
the same name as the form.

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"aterlamia" <mp********@planet.nl> wrote in message
news:bm**********@reader11.wxs.nl...
: For on or an other reason i couldnt find where a imag eor a picture object
: stores the path to a picture (For exampe if i type in a text box
c:\pic.jpg
: where must i say that the pic box realy shows the pic)
: hope this is understandable sinc ei am not english :)
:
: aterlamia
:
:
Jul 17 '05 #2

"aterlamia" <mp********@planet.nl> wrote in message
news:bm**********@reader11.wxs.nl...
For on or an other reason i couldnt find where a imag eor a picture object
stores the path to a picture (For exampe if i type in a text box c:\pic.jpg where must i say that the pic box realy shows the pic)
hope this is understandable sinc ei am not english :)

aterlamia

You can create a form with a picture box and a text box. When someone type
c:\pic.bmp in the text box, you can do a load picture on the picture box. If
it errs out then the name or path is bad.

For example:

f$ = trim(text1.text)
On Error GoTo errhan
Picture1.Picture = LoadPicture(f$)
loadpicout:
Exit Sub

errhan:
MsgBox ("Unable to read picture format")
Resume loadpicout
Jul 17 '05 #3
thanks raoul yes this whas what i searched for
me beeing use dto delphi searched it on an other place

aterlamia
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message
news:qk****************@nwrdny02.gnilink.net...

"aterlamia" <mp********@planet.nl> wrote in message
news:bm**********@reader11.wxs.nl...
For on or an other reason i couldnt find where a imag eor a picture object stores the path to a picture (For exampe if i type in a text box c:\pic.jpg
where must i say that the pic box realy shows the pic)
hope this is understandable sinc ei am not english :)

aterlamia

You can create a form with a picture box and a text box. When someone type
c:\pic.bmp in the text box, you can do a load picture on the picture box.

If it errs out then the name or path is bad.

For example:

f$ = trim(text1.text)
On Error GoTo errhan
Picture1.Picture = LoadPicture(f$)
loadpicout:
Exit Sub

errhan:
MsgBox ("Unable to read picture format")
Resume loadpicout

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim Dawson | last post: by
5 posts views Thread by John Kiernan | last post: by
2 posts views Thread by Fu Chen | last post: by
2 posts views Thread by carlos123 | last post: by
2 posts views Thread by Drupan c | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.