Cool Visual Basic
 
Main
Frequently Asked Questions
VB Helpdesk
Message Boards
Library
Downloads
View Guestbook
Add to Guestbook
Product Reviews
Bookstore
Links
Newsgroups
Vendors
Affiliates
Cooltech.org

Cool VB FAQ


Text Format

The best Visual Basic FAQ(Frequently Asked Quesitions) file on the internet. Do you have a problem that's got you stumped? Do you have the answer to one? We've done our best to make this the best resources for the questions and the answers. Post a question, or a answer to one, by sending email to VBQA@beadsandbaubles.com.

      Root

            Graphics

  • How can I use VB to view a JPEG, GIF, or XBM?

    Compatibility:VB3  VB4  VB5

    You can't do this with VB4 or earlier. You have to get a OCX or VBX. (Unless, of course, you have or had VB5CCE installed, in which case you can do it the same as in VB5). With VB5, you can use loadpicture, like this:

      picture1 = loadpicture("mypicture.jpg")
      picture2 = loadpicture("myotherpic.gif")
    
    Or, you can set the picture or icon property of any control at design time to a JPEG, GIF, or XBM. This technique works for GIF, JPEG, WMF, BMP, ICO, RLE, and XBM.

     

     

    LinkExchange
    LinkExchange Member Free Home Pages at GeoCities


    Copyright 2000, David J Berube<Form1@aol.com>. All Rights Reserved.