open form in front of app

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?
 
C

Cor Ligthert [MVP]

Smay,

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

I hope this helps,

Cor
 
G

Guest

Neither works.

Cor Ligthert said:
Smay,

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

I hope this helps,

Cor
 
C

Cor Ligthert [MVP]

Smay,

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

Annoying

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top