+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    1

    Help in Visual Basic

     
    I am creating a program in where I have several items listed with radio buttons. Now, my main goal is when I click on a button and hit the display button, I want several pictures that I predertermined to appear in either a new window or in a group box.

    I need help in the area of how to declare images as vairables.

    Thanks
    - Altis 1

  2. #2
    Not Really a Member
    Join Date
    Oct 2001
    Posts
    27,856
    what type of VB is it?
    VB6, VB.NET?
    Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.

  3. #3
    Junior Member
    Join Date
    May 2005
    Posts
    19
    I don't think you need to declare images as variables more declare a string containing the path of th image

    Code:
    Dim strFileName as String
    
    strFileName = "C:\MyPic.png"
    Image1.Picture = LoadPicture(strFileName)
    hope this helps

    James

  4. #4
    Ultimate Member
    Join Date
    Jan 2003
    Location
    MA / NH
    Posts
    1,497
    Quote Originally Posted by James342
    I don't think you need to declare images as variables more declare a string containing the path of th image

    Code:
    Dim strFileName as String
    
    strFileName = "C:\MyPic.png"
    Image1.Picture = LoadPicture(strFileName)
    hope this helps

    James
    I have a habit of loading all of the images into a separate form in the program, so when you want to access them you already have them loaded, and more importantly you don’t need any extra files that can get lost or corrupted, your EXE is all self inclusive.

    VB 6 or VB.NET?


    -Blaze

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Visual Basic Help
    By njolakoski in forum Webmastering and Programming
    Replies: 14
    Last Post: May 13th, 2005, 10:28 PM
  2. Visual Basic Help?
    By redfoxstorm in forum Webmastering and Programming
    Replies: 1
    Last Post: February 14th, 2005, 11:39 AM
  3. Visual Basic
    By Paluccie in forum Webmastering and Programming
    Replies: 32
    Last Post: December 16th, 2002, 07:09 PM
  4. Visual Basic
    By kickzum in forum General Tech Discussion
    Replies: 22
    Last Post: August 18th, 2002, 12:52 PM
  5. Visual Basic HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    By George VII in forum Webmastering and Programming
    Replies: 8
    Last Post: May 18th, 2002, 05:46 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews