Current location: Hot Scripts Forums » Programming Languages » Visual Basic » i need to change image


i need to change image

Reply
  #1 (permalink)  
Old 11-26-03, 05:46 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
i need to change image

iam using vb6.0 and access i want to change picture / image of the product, product details are stored in db1. they are coming from database. according to the one that is selected in drop down how can i change/show the img of the product...
like in javascript i give statement "document.form.text.value="test.jpg";"
ne suggestions
thx in advance!
Reply With Quote
  #2 (permalink)  
Old 11-26-03, 06:58 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
if you are displaying the picture as a "PictureBox" object then you would need to set the "Picture" property to the path of the picture I believe. I'm not sure if the picture will update while the program is running or if it only is set once when the program starts.. If you can then this should work.
Reply With Quote
  #3 (permalink)  
Old 11-27-03, 04:58 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
i need image / picture to come from database

iam using vb6.0 and access i want to change picture / image of the product, product details are stored in db1. they are coming from database. according to the one that is selected in drop down how can i change/show the img of the product...
like when i use asp and html i give statement "<input type=image src="<%=rs("image")%>">"
where <%=rs("image")%> is the path of the image stored in database field image
i need to do same thing but in vb6.0 and access how do i do
ne suggestions
thx in advance!
Reply With Quote
  #4 (permalink)  
Old 11-27-03, 05:00 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
i need image / picture path to come from database

iam using vb6.0 and access i want to change picture / image of the product, product details are stored in db1. they are coming from database. according to the one that is selected in drop down how can i change/show the img of the product...
like when i use asp and html i give statement "<input type=image src="<%=rs("image")%>">"
where <%=rs("image")%> is the path of the image stored in database field image
i need to do same thing but in vb6.0 and access how do i do
ne suggestions
thx in advance!
Reply With Quote
  #5 (permalink)  
Old 11-27-03, 06:41 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
so the image itself is stored in the database? if so bring the object back from the database and an image object, then set it to the picture you want changed.
Reply With Quote
  #6 (permalink)  
Old 12-03-03, 09:41 AM
Emmanuel Emmanuel is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Use the path of your image and LoadPicture function :

For instance with a picturebox object :

NamePictureBox.picture = Loadpicture(PathofYourImage, ..etc..)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modify Google image search benska Script Requests 0 11-12-03 04:04 PM
Need help on a image slide show using php! xelanoimis PHP 2 10-16-03 06:51 PM
A different kind of image counter Stix Script Requests 1 08-11-03 11:50 PM
PHP Live Support image change Jakenorton Script Requests 2 07-28-03 04:28 AM
change image zlatkomicic JavaScript 4 06-17-03 09:05 AM


All times are GMT -5. The time now is 01:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.