• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

usercontrol zorder

I am trying to build a custom combobox (Usercontrol with textbox, listview and button constituent controls)

When the combobox "expand" (click on button) I change the UserControl.Height property. This fires a UserControl_Resize event where I resize the constituent control (the listview) to to get the "drop-down" effect.

How do I make the expanded part display "above" all the other controls on the form. I tried using zorder(0) before I start sizing the usercontrol, but this did not help.
0
EnricoS
Asked:
EnricoS
1 Solution
 
Julian_KCommented:
Hi, EnricoS.
some time ago I had simillar porblem...
Then I used a non-modal form and put the listview on it.
Then, when I had to show the listview, I displayed the form.

Not very smart, but it works.
0
 
bob_onlineCommented:
If you put a frame control on your control and put the listview in the frame, I think you'll get the result you're looking for.  The frame will appear on top of all controls, including buttons.
0
 
EnricoSAuthor Commented:
very nice !
Thnx
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now