Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Brilliant! Your site is great...and saving me hours of time at work and making my boss think I am brilliant too! I also picked up on a thread that will potentially save us a lot of money in the future..."

Geography

Where in the world do Tek-Tips members come from?

Assigning a JPG to Picture Control using Search Text Box as file name

dedo8816 (Programmer)
14 Mar 12 12:26
I have a program that you enter a part number/serial number into the search text box, press enter and the program displays everything about the part. Now i'd like to add a picture of the part. I had started by using a Picture box on the form and entering the following into my search code:

picbox.Picture = "\\Jupiter\Labeller\Pictures\" & (TxtSearch.Text) & ".JPG"

Basically telling the program to use the network location and load the picture with the name in "TxtSearch.Text" + .jpg extention. But it doesnt work and for all my trying im just not the greatest programmer in the world. I'd really appreciate the help anyone here has to offer.

Many thanks
D
gmmastros (Programmer)
14 Mar 12 12:32
Try...


Set picBox.Picture = LoadPicture("\\Jupiter\Labeller\Pictures\" & (TxtSearch.Text) & ".JPG")


 

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom

dedo8816 (Programmer)
14 Mar 12 17:27
Hi, thanks for your reply, i actually realised this earlier before i left work, silly mistake... Thanks though, hope this helps someone else.

D

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close