|
-
Sep 30th, 2000, 07:24 AM
#1
Thread Starter
Ex-Super Mod'rater
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 ?????
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Sep 30th, 2000, 07:33 AM
#2
_______
<?>
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
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 30th, 2000, 08:24 AM
#3
Thread Starter
Ex-Super Mod'rater
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.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Sep 30th, 2000, 08:28 AM
#4
_______
<?>
Code:
:D :D
:D
:D :D
:D :D
Enjoy!
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|