Results 1 to 6 of 6

Thread: [Help] Looking for a few references for making a button show an image

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2015
    Posts
    1

    [Help] Looking for a few references for making a button show an image

    So, I'm planning to work on a project that I will be able to click a button, and it will pull an image from the localhost and display it in a little box.

    It's like the ONLY important coding that I need done for it, anyone know how I can do such a thing?

    Can I also get a download/install link for VB 6, I've googled alot and i get .ISO files and I don't want to risk any of that

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    7,442

    Re: [Help] Looking for a few references for making a button show an image

    Look up loadPicture.

    No such thing as an install link for VB6.....only available on CD's.....to get a legal copy, will probably cost you between five and eight Franklins.

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,473

    Re: [Help] Looking for a few references for making a button show an image

    The Microsoft Common Dialog Control from your toolbox will allow you to present a GUI for the user to select images. As Sam suggested, LoadPicture() can be used to assign the image to an Image or Picturebox control. VB natively supports bmp, jpg, gif, ico/cur, wmf/emf, for the most part.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [Help] Looking for a few references for making a button show an image

    little_box.picture = LoadPicture(path_to_picture)


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  5. #5
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    13,278

    Re: [Help] Looking for a few references for making a button show an image

    Quote Originally Posted by SamOscarBrown View Post
    No such thing as an install link for VB6.....only available on CD's.....to get a legal copy, will probably cost you between five and eight Franklins.
    Actually there is one legit legal place that you can download an ISO of VB6. MSDN Subscribers site. Of course you need a paid subscription to download it.

    I am sure there are ISO images and such available on the net but these would be illegal pirated versions if they are in fact VB and not some virus in disguise.

    The bottom line with VB6 is that unless you want to pay for a CD or an MSDN subscription there is no legal way to get/use it.

    May be a good idea to go with VB Express instead as it is free and legal to download and use without paying.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,953

    Re: [Help] Looking for a few references for making a button show an image

    Quote Originally Posted by DataMiser View Post
    May be a good idea to go with VB Express instead as it is free and legal to download and use without paying.
    But then it's not VB6... *shrug*

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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