By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,184 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,184 IT Pros & Developers. It's quick & easy.

open form in front of app

P: n/a
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?
Sep 20 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <sm**@discussions.microsoft.comschreef in bericht
news:D8**********************************@microsof t.com...
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?

Sep 20 '06 #2

P: n/a
Neither works.

"Cor Ligthert [MVP]" wrote:
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" <sm**@discussions.microsoft.comschreef in bericht
news:D8**********************************@microsof t.com...
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?


Sep 20 '06 #3

P: n/a
Smay,

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

Annoying

Cor

"smay" <sm**@discussions.microsoft.comschreef in bericht
news:41**********************************@microsof t.com...
Neither works.

"Cor Ligthert [MVP]" wrote:
>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" <sm**@discussions.microsoft.comschreef in bericht
news:D8**********************************@microso ft.com...
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?



Sep 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.