Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floating control activated, but stop the parent form becoming active?

Status
Not open for further replies.

gdrenfrew

Programmer
Aug 1, 2002
227
GB
I'd like to know if it is possible to stop the parent application of a floating form becoming active when the controls on the floating form are clicked?

I've got a large application, with multiple embedded controls. Some of the controls can be detached on effectively floating forms, which can be dragged about the screen. Not using MDI type stuff, just forms.

The app is on our traders' desktops, and they have many applications open (Reuters, excel...). So they don't want "background" apps jumping to the front - even though they want this floating form to be useable at the front.

When I click on a contorl of one of the floating forms, the "parent" application also becomes active and jumps in front of their other apps, and is very annoying.

Is it possible to stop an event on the floating form feeding back to the parent application? I guess the event I want to capture is "Activated", but I don't know what to do to stop this activating the parent app.

Hope this makes sense.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top