Results 1 to 5 of 5

Thread: ComboBox Background Image

  1. #1

    Thread Starter
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360

    Question ComboBox Background Image

    Dim imgBg As System.Drawing.Image
    bg.FromFile(System.Environment.CurrentDirectory & "\Textures\marf.jpg")
    cboYear.BackgroundImage = imgBg

    Does not put the image behind the combobox. Anybody know why? Is there another combobox property i need to set to allow it to have an image placed behind it?

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Good fricken question...

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I also can't get .Backgroundimage to work with a Listbox, which is what a combobox uses to display the choices...

    If you step through using debugging, you can see that the image is successfully assigned to the combobox or listbox backgroundimage property, but it does not draw it.

    So, there must be an additional execution required.

  4. #4

    Thread Starter
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Yeah I also tried to see if theres a Style property or something that would make some sense but found zilch. Could it be remotely possible this is a (dramatic pause) BUG?

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Bug... quite possible.

    Then again, I'm not even sure the listbox and combobox were supposed to have a BackgroundImage property.

    If you put one on your form, and right-click it for properties, you won't see it in the propertygrid that appears.

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