Results 1 to 4 of 4

Thread: How do I remove a picture from my form?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    71

    How do I remove a picture from my form?

    Well, I'm making a "Space Invaders" style game, and I just coded the aliens part as a grid of labels I drew with some code as an array. The way it works is that the labels are made transparent, like they're pixels. It worked okay, so I decided to add a background image to the form. No for some reason, I can't see anything when I run the program I think the problem is that when the labels are drawn they go behind the image or something. Now I think I'd rather remove the background image, unless someone can tell me how to get it to work with the background image.... which would be preferable..... and without the use of API, or else I'm gonna have to remove it. The problem is that once you put a freakin image on a form, VB doesn't allow you to remove it unless you're replacing it with another image. Any help would be greatly appreciated. Thanks!

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Posts
    20

    Re: How do I remove a picture from my form?

    rofl just press the Del key while the "picture" box in the properties list has the focus. omg i thought everybody knew this

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    71

    Re: How do I remove a picture from my form?

    Ok, I figured out my problem , turns out I switched the measurement to pixels from Twips, and forgot to change it back. Thanks for the help though

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

    Re: How do I remove a picture from my form?

    and if you want to remove the picture from the form at runtime then use
    VB Code:
    1. Set Form1.Picture = Nothing
    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