open form in front of app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing an app that is launched by right-clicking on an XML file and
choosing Open With - My App. My App launches another 3rd-party desktop app
to import the XML file into. However, before the XML file can be imported I
need to display a form that tells the user to click on a line in the
3rd-party app and then return to the My App form to click on the OK button.

If I use ShowDialog() the form displays behind the 3rd-party app, even if I
also use BringToFront and/or Focus. If I use Show() the form doesn't show at
all. If I use Activate() the form display in front of the 3rd-party app but
I can not perform any actions on the 3rd-party app until the My App form is
closed.

How can I open the My App form in front of the 3rd-part app and still be
able to switch to the other window to click on something before returning to
the My App form to click OK?
 
Smay,

Have a look at the forms property TopMost or the forms method BringToFront
if those can help you.

I hope this helps,

Cor
 
Smay,

Than probably is this as well in your 3th party application.

Annoying

Cor
 
Back
Top