Results 1 to 4 of 4

Thread: What happened to image control?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    What happened to image control?

    It was there in VB 6. I have some images that I'm going to use a buttons, and I did this in VB 6 with the image control. however, this control doesn't appear to exist in VB.NET 2008 Express. I guess I could use a picture box, but isn't that overkill for such a simple task? Thanks.

  2. #2
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: What happened to image control?

    No, the picture box is actually an extremely useful tool. Far superior to the image control. Alternatively you could just use a panel and set its background image to whatever image you want. That has the equivalent functionality to an imagebox.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Re: What happened to image control?

    Ok, I have tried with a picturebox and a panel control. I set the background image of my form (it's a .PNG), added as a .resx file to the project and it shows up. However, when I try to add my other images, in a picturebox or a panel control with the same method, the image doesn't show up in the control, the control just remains gray? Any ideas? (all images are .png files)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Re: What happened to image control?

    Ok, got that resolved. Was an un-related issue with the Canvas size of the buttons. The person that made the buttons for me had a canvas size of 500 x 500 and didn't size the canvas down to just the button size. However, I have one other problem. My buttons are transparent .pngs, and it doesn't look like the picbox control or Panel control can have the back color set to transparent. Is there any way I can accomplish this in VB.Net 2008 Express? Thanks for any suggestions.

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