Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Display Picture on Form
Message
 
To
24/02/2002 22:01:48
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00624364
Message ID:
00624417
Views:
13
Use the LoadPicture method.

>I have created an Image control on the form and would like to
>assign a new picture (eg. graphic.jpg) each time I move the
>database pointer to the next record.
>How could I go about assigning the picture name.
>
>I tried something as follows, but it doesn't work:
> Image1.Picture = "c:\pictures\" & RTrim(LTrim(CStr(txtItemCode.Text)))
> & ".jpg"
>
> where txtItemCode.Text is one of the fields display on the form.
>
>Please advise, thank you very much.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform