Results 1 to 4 of 4

Thread: MS Forms 2.0 Combobox

  1. #1
    Guest
    How can i make an msforms combobox sit on top of
    another control?
    Each time i tried to place it on top of a grid, it always
    goes behind it.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You can right click on the Combobox in design time and select Bring to front or you can execute one line of code that will do the same thing:

    ComboboxControl.ZOrder

  3. #3
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    Yes, that Forms 2.0 ComboBox is tricky because for some reason it won't go on top of the regular controls, even using the ZOrder method or "bring to front" command.

    However, one time what I did was paste the ComboBox onto a PictureBox; then you can place the PictureBox (with the ComboBox in it) on top of the grid. If you size the PictureBox to the same dimensions as the ComboBox, nobody will even know that it's there.

    Hope that helps!

  4. #4
    Guest
    P.S.W., I already tried that one before my post. I decided to make a usrcontrol combobox with a picture box.

    I ran into the trouble of exposing its column property. I have my property get for it:

    public property get column(col as int,index as int) as string
    column = combo1.column(col,index)
    end

    How will write my property let for it?

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