Results 1 to 4 of 4

Thread: A Quick question just about everyone should know but I don't.

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    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.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    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.

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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
  •  



Click Here to Expand Forum to Full Width