|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
open form in front of appI'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 Show quoteHide quote "smay" <s***@discussions.microsoft.com> schreef in bericht news:D8717F9D-B361-412D-98F0-0FD87E016851@microsoft.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? Neither works.
Show quoteHide quote "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" <s***@discussions.microsoft.com> schreef in bericht > news:D8717F9D-B361-412D-98F0-0FD87E016851@microsoft.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? > > > Smay,
Than probably is this as well in your 3th party application. Annoying Cor Show quoteHide quote "smay" <s***@discussions.microsoft.com> schreef in bericht news:41FD3B0B-8231-4A6E-BB83-D69AF50BB68C@microsoft.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" <s***@discussions.microsoft.com> schreef in bericht >> news:D8717F9D-B361-412D-98F0-0FD87E016851@microsoft.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? >> >> >> |
|||||||||||||||||||||||