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 2008

Tip: Looking for answers? Try searching our database.

Control Enter Event stops firing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TheFid - 17 Mar 2008 15:24 GMT
I have created a custom UserControl (I call it a "Workspace") that
contains four controls, one of which is an ActiveX control.

The Enter event of the ActiveX control is wired up.

If I embed two Workspace controls (say, A & B) in my form, the ActiveX
Enter event will only fire once for each Workspace, and then stops
firing.

Scenario:
1) Bring up the form.
2) Click A - the Enter event for A fires.
3) Click B - the Enter event for B fires.
4) Click A again and the Enter event for A does NOT fire,
5) Click B again and the Enter event for B does NOT fire,

Neither Enter events ever fire again.

If I place two of the ActiveX's on a form (i.e., not embedded in a
Workspace) and wire up the Enter event, they _never_ stop firing no
matter how many times I click on them.

What is it about embedding the ActiveX in a UserControl derived
control that breaks the Enter event?

Any guidance appreciated.

Cheers and TIA,
Mike
TheFid - 18 Mar 2008 20:56 GMT
I finally gave up and used the Control.MouseCaptureChanged event
instead.

Rate this thread:







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.