Hi All,
Here my doubt is regarding to a picture box in VB 6.0
assume that i have few picture boxes in my appliaction named Picture1,pictur e2,picture3..et c.
And in my application, i have to load the pictures dynamically. i can load like...
Picture1.pictur e=Load picture("path of a .bmp)
Picture2.pictur e=Load picture("path of a .bmp)
Picture3.pictur e=Load picture("path of a .bmp)
But i am not interested to load like this. i want to write a method like this..
private sub subLoadPictures (byval pictrueName as string, byval PicturePath as string)
pictureName.pic ture=load picture(picture path)
end sub
I tried this one, but could not get working properly.. could u please say how to use a string that represents the name of a picture.
Thanks:
regards:
raghunadhs.
Here my doubt is regarding to a picture box in VB 6.0
assume that i have few picture boxes in my appliaction named Picture1,pictur e2,picture3..et c.
And in my application, i have to load the pictures dynamically. i can load like...
Picture1.pictur e=Load picture("path of a .bmp)
Picture2.pictur e=Load picture("path of a .bmp)
Picture3.pictur e=Load picture("path of a .bmp)
But i am not interested to load like this. i want to write a method like this..
private sub subLoadPictures (byval pictrueName as string, byval PicturePath as string)
pictureName.pic ture=load picture(picture path)
end sub
I tried this one, but could not get working properly.. could u please say how to use a string that represents the name of a picture.
Thanks:
regards:
raghunadhs.
Comment