I'm bringing up a form from a mousedown event in a list view. The form has
just a bit of information the user may want to view.
What I would like to happen is for the user to press the mouse button and
hold it down to view the pop-up form and when the mouse button is released
the pop-up form will go away.
The problem is that the mousedown event code executes and displays the form
but when execution returns from the mousedown event code, the original form
pops back to the front, covering up the small pop-up form
the mouseup event code is taking care of removing the form.
How can I make the pop-up form stay visible?
things I've tried
1. If I turn enable off for the original form, the form stays on top,
but then I don't get the mouse up event
2. I've tried using the zorder method on both the pop-up form and the
original form. This doesn't seem to help
3. I've tried doing a setfocus on the pop-up form but the original form
still pops back on top when the mousedown event exits.
Any suggestions would be appreciated.
thanks
Claire
Mike Williams - 28 Sep 2004 19:39 GMT
> The problem is that the mousedown event code executes and
> displays the form but when execution returns from the
> mousedown event code, the original form pops back to the
> front, covering up the small pop-up form
Form2.Show , Me