Results 1 to 11 of 11

Thread: image uploader

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    Exclamation image uploader

    can any body help me on how to made an image uploader,cause i need it in my project..the problem is i need to upload an image to picturebox

  2. #2
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: image uploader

    Jose Jr.

    Up load an image from where.

    You can just set the properties for the Picture Box in the Properties window
    at design time.

    I'm not sure I understand what you need to do??

    Good Luck

  3. #3
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: image uploader

    You can also do it through code
    Code:
        Picture1.Picture = LoadPicture("C:\MyImage.jpg")

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    Exclamation Re: image uploader

    may friend already use that code....wat i mean is that i will be using the image box to show up the picture but i also need to have a button that can search inside the computer like the button "browser"...can you help me to have that kind of code

  5. #5
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: image uploader

    Code:
    'Add reference to "Microsoft Commond Dialog Control"
    'Draw a Common Dialog onto the form
    'Draw an image control onto the form
    
    Private Sub Command1_Click()
    On Error GoTo Errmsg
        With CommonDialog1
            .Filter = "All images|*.jpg;*.bmp|All File|*.*"
            .CancelError = True
            .ShowOpen
        End With
    
        Image1.Picture = LoadPicture(CommonDialog1.FileName)
    
    Exit Sub
    Errmsg:
        If Err.Number = cdlCancel Then Exit Sub
        MsgBox Err.Description
    End Sub

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    Exclamation image uploader

    How about if i'll be using the picture box to show up the picture and thesame way i'll be using also a button that can search inside the computer like the button browser......

  7. #7
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: image uploader

    Have you tried Andrew's code ?
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    Re: image uploader

    not..yet but i'm trying to do it now.

  9. #9
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: image uploader

    meh not sure if this will help but look at this program i made
    It is a picture editor very basic.
    Attached.
    Attached Files Attached Files

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    Resolved Re: image uploader

    i've tryied to download wat you post but their's an error..it won't show up..thnks for the help

  11. #11
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: image uploader

    [QUOTEJose JR.]i've tryied to download wat you post but their's an error..it won't show up..[/QUOTE]
    what is the error that you are getting...
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


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