|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
displaying picture from file
Ok, i need to be able to display a picture in an 'image', but i need it to be able to change when a file name for the picture is read in from a seperate text file. I have treid a few things, but it has left me confused. Can anyone help me?
__________________
"Operator, Give me the number for 911" - Homer J Simpson JonnoWalmsley.com vv Latest Image vv
|
|
#2
|
||||
|
||||
|
How about showing what you have tried.
|
|
#3
|
||||
|
||||
|
i have tried the following (i am doing this off the top of my head at school, so the code could be wrong):
image1.picture = "c:\program files\ etc etc" which didnt work (obviously). i have also put like 10 image boxes in and just changed the .visible property for each to display each file, but this is really really dodgy, as u can imagine. What i want to know: Is there any way to read in a file name of a picture from a file, and use that file name to load a picture to an image or picture box? This is the first time i have really used images etc, i usually just do calculations and formulas etc....any help would be greatly appreciated. Last edited by sir_drinxalot : November 6th, 2003 at 10:12 PM. |
|
#4
|
|||
|
|||
|
USe the loadpicture Method:
Image1.Picture = LoadPicture("C:\1.jpg") To see more:http://msdn.microsoft.com/library/d...loadpicture.asp |
|
#5
|
||||
|
||||
|
thanks cleverpig, works a treat. much appreciated
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > displaying picture from file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|