maybe weird question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aterlamia

    #1

    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


  • Randy Birch

    #2
    Re: maybe weird question

    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

    Please respond only to the newsgroups so all can benefit.


    "aterlamia" <mplouwerse@pla net.nl> wrote in message
    news:bmbupv$suh $1@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
    :
    :


    Comment

    • Raoul Watson

      #3
      Re: maybe weird question


      "aterlamia" <mplouwerse@pla net.nl> wrote in message
      news:bmbupv$suh $1@reader11.wxs .nl...[color=blue]
      > 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[/color]
      c:\pic.jpg[color=blue]
      > where must i say that the pic box realy shows the pic)
      > hope this is understandable sinc ei am not english :)
      >
      > aterlamia
      >
      >[/color]
      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.Pictur e = LoadPicture(f$)
      loadpicout:
      Exit Sub

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


      Comment

      • aterlamia

        #4
        Re: maybe weird question

        thanks raoul yes this whas what i searched for
        me beeing use dto delphi searched it on an other place

        aterlamia
        "Raoul Watson" <WatsonR@Intell igenCIA.com> wrote in message
        news:qkfib.4230 $fv4.462@nwrdny 02.gnilink.net. ..[color=blue]
        >
        > "aterlamia" <mplouwerse@pla net.nl> wrote in message
        > news:bmbupv$suh $1@reader11.wxs .nl...[color=green]
        > > For on or an other reason i couldnt find where a imag eor a picture[/color][/color]
        object[color=blue][color=green]
        > > stores the path to a picture (For exampe if i type in a text box[/color]
        > c:\pic.jpg[color=green]
        > > where must i say that the pic box realy shows the pic)
        > > hope this is understandable sinc ei am not english :)
        > >
        > > aterlamia
        > >
        > >[/color]
        > 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.[/color]
        If[color=blue]
        > it errs out then the name or path is bad.
        >
        > For example:
        >
        > f$ = trim(text1.text )
        > On Error GoTo errhan
        > Picture1.Pictur e = LoadPicture(f$)
        > loadpicout:
        > Exit Sub
        >
        > errhan:
        > MsgBox ("Unable to read picture format")
        > Resume loadpicout
        >
        >[/color]


        Comment

        Working...