Set Picture1.Picture = LoadPicture("C:\MIADIR\File.png")
Instead File.png, i need to set a variable name of image...
admit i have a string var:
nomefile="File2.png"
used this but have error
Set Picture1.Picture = LoadPicture("C:\MIADIR\"& nomefile &")"
use string variable to load image in picturebox
-
- PlatinumLounger
- Posts: 4355
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 78465
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: use string variable top load image in pèiocturebox
Set Picture1.Picture = LoadPicture("C:\MIADIR\" & nomefile)
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4355
- Joined: 26 Apr 2010, 17:36