-
Is it possible to use the common dialog control to change the image in a Picturebox(YES, I said picture box not Image box cause I know how to do it on a image box).
I will be greatfull for any help you provide.
Another thing is it possible to get the size of a file that is on the internet???
i.e. I tried to use this: ( but it SEEMS to only work on a local file)
Code:
FileSystem.FileLen(Path As String) As Long
can anyone help ?????
-
<?>
Code:
'here is how to load a picturebox via commondialog
Option Explicit
Private Sub Command1_Click()
On Error GoTo errHandle:
CommonDialog1.InitDir = "C:\" 'set dir path
CommonDialog1.CancelError = True 'used in cancel code
CommonDialog1.Filter = "JPG(*.jpg)|*.jpg*" 'filter for jpg
CommonDialog1.ShowOpen 'show files
Set Picture1.Picture = LoadPicture(CommonDialog1.FileName)
errHandle:
End Sub
-
Thanx loads
You don't realise how much you just helped me
Anyway if you want I will send you the final program just e-mail me. Its a sort of 2D game.
-
<?>
Code:
:D :D
:D
:D :D
:D :D
Enjoy!