|
-
Sep 12th, 2000, 02:14 AM
#1
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.
-
Sep 12th, 2000, 09:50 AM
#2
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
-
Sep 12th, 2000, 10:37 AM
#3
Addicted Member
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!
-
Sep 12th, 2000, 10:41 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|