Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

stopping editor component

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 22 Mar 2006 05:19 GMT
I have create a control which could be edited. That is you could double
click on some shape in my view and I will popup and editor.
Such as a TextBox, an "advanced" UserControl and so on.

Now I would like to stop editing if the user click outside my control, go
elsewhere, etc.....

My initial implementation was to show the editor in a borderless window.
The advantage with that is that I could use the   *Inactivate*   event of
the windows to know if the user clicked outside, use CONTROL+TAB and so on.

But, ideally, I would like to simply add my editor as a child control of my
control but I don't know how to track wether or not the user *leave* the
control.

I cannot use the *LostFocus* event either as, in the case of a UserControl,
the focus could simply go on a child control and then I loose track of it.

I think I probably have to use a message filter, but I'm not sure which
event / message id, would give me the information I need.
Any thoughts? links? ideas?
Kris - 22 Mar 2006 20:43 GMT
http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/index.asp

There are a few articles showing inplace editing and popup controls.
Lloyd Dupont - 23 Mar 2006 01:58 GMT
Thanks Kris, very usefull!

> http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/index.asp
>
> There are a few articles showing inplace editing and popup controls.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.