Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted (edited)

Some controls, for instance, the combo box and the datetime picker, popup a window that allows you to edit their value. When this window pops up it can be outside the bounds of the form that contains the control. It also does not take focus from the application's main form.

 

How can this behavior be emulated in a .Net application?

 

edit: I should have said this: My difficulty lies in not stealing the focus of the main window.

Edited by snarfblam
[sIGPIC]e[/sIGPIC]
  • Leaders
Posted

Yeah, so... to answer my own question...

 

This is how you make a popup control that not only can leave the bounds of the parent container (can't normally be done with control but can with a separate form) but doesn't steal focus from the form (can be done with a control but not a separate form).

 

http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Floating_Controls/article.asp

 

This control will not recieve mouse events, but the example can be modified to change this.

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...