473,386 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

open form in front of app

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
3 1428
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
1
by: celtic_kiwi | last post by:
I have an Access 97 database, quite large, and have started getting the error, Error 3048: Can't Open any more databases. -The data is split from the application (front end and back end). -The...
2
by: celtic_kiwi | last post by:
I have an Access 97 database, quite large, and have started getting the error, Error 3048: Can't Open any more databases. -The data is split from the application (front end and back end). -The...
4
by: jaYPee | last post by:
I know how to open a form from another form. Say open form2 from form1 using a command button. But my problem is everytime I clicked the button it open again another instance of that form. ...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
3
by: rdemyan via AccessMonster.com | last post by:
My application is split into a front end and back end. Each user has their own copy of the front end. There are a few forms I only want to be open for one user at a time. So I've implemented the...
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
1
by: =?Utf-8?B?QXNobGV5VA==?= | last post by:
Inside : Private Sub _xlApp_WorkbookBeforeClose(ByRef Cancel As Boolean) Handles _xlApp.WorkbookBeforeClose I have Try Dim QuoteActivity As New QuoteSheetActivityForm()...
2
by: KA NMC | last post by:
Current application is built in VB.net 2005 what it does is open other small applications within the form. I'm not using mdi I probably should. Here is my problem The application load - main...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.