Form as Popup

S

Sergio

Hi all,

I have a vb6 form that function as a popup menu and
autoclose when i click out of this form; for doing so I
use subclassing and win32 api.

How can I replicate this functionality entirely in .Net
without use Win32 api ?

Thank's
 
H

Herfried K. Wagner [MVP]

* "Sergio said:
I have a vb6 form that function as a popup menu and
autoclose when i click out of this form; for doing so I
use subclassing and win32 api.

How can I replicate this functionality entirely in .Net
without use Win32 api ?

What's your problem? Why exactly did you need the Win32 API in your VB6
solution?
 
S

Sergio

I have a form that contains an custom control (ocx);this
ocx contains another form that function as a popup. In
this control I subclass the events of the container form.
In .Net I don't know how to do this.

Thank's
 
H

Herfried K. Wagner [MVP]

* "Sergio said:
I have a form that contains an custom control (ocx);this
ocx contains another form that function as a popup. In
this control I subclass the events of the container form.
In .Net I don't know how to do this.

Why do you need the events of the container form?
 
Y

Ying-Shen Yu[MSFT]

Hi Sergio,

I'd like to know how you implement this feature in VB6?
You can also do "subclassing" in VB.NET by overriding the WndProc method.
Also the control class has a property names Capture which can help you
set/release the mouse capture. You may check that if you had used any other
APIs to implement this feature? Please be free to reply to this thread,
maybe we can find a managed code way to do the same thing.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top