switching .exe

  • Thread starter Thread starter SQACSharp
  • Start date Start date
S

SQACSharp

Hi,

I have 2 applications. One use the .Net 1.0 and the other use .Net
2.0 framework. The two applications are EXACTLY THE SAME, the only
difference is that one is compiled with VS 2002 and the other with VS
2005..this is because of design and compatibility between framework.

I want to similate that the user use the same application...how can i
switch between the .exe??
How can I start an application without having an icon the the taskbar?
How can I hide and unhide the application from another application?
How can I similate that the application use the same icon (task) in
the taskbar?

Thanks for any suggestion!
 
Very not clear what you want to do and why would anyone would like to do
that.
if you don't want application to show in taskbar then you should set
properties on the window when you design it.
You could send messages from one application to another - that way they can
control it in any way you want but you have to design it like that.

Good luck.
 
SQACSharp said:
Hi,

I have 2 applications. One use the .Net 1.0 and the other use .Net
2.0 framework. The two applications are EXACTLY THE SAME, the only
difference is that one is compiled with VS 2002 and the other with VS
2005..this is because of design and compatibility between framework.

I want to similate that the user use the same application...how can i
switch between the .exe??

I don't know what you mean by similate, but, the user can have both .exe
files on their computer. Let's say one is in c:\version1.0\demo.exe and the
other is in c:\version2.0\demo.exe.
How can I start an application without having an icon the the taskbar?

By going to the right folder and starting the right exe. If you mean from a
program, then by putting the right path in a
system.diagnostic.process.startinfo.filename attribute.
How can I hide and unhide the application from another application?

If the both demo.exe codes allow the UI to be minimized, then you will need
to use p/invoke to hide the window, probably with ShowWindow, though I
haven't tried this.
How can I similate that the application use the same icon (task) in
the taskbar?

You cannot. A shortcut has one target.
 
Ok imagine an application like http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy.
This application can show windows/controls properties at runtime but
only if the application use the same .net framework as managed spy.
(2.0)

So I decide to install VS 2002, VS 2005 and VS 2008 to compile
different version of my application. Let's say ManagedSpy1.0.exe,
ManagedSpy2.0.exe and ManagedSpy3.0.exe

I start the tree applications in background but only one will be
visible at a time...if the user select a Window/Control that use a
different .net framework I need to hide the current ManagedSpy and
show another managed spy .exe that use the same .net framework as the
targeted application.

The goal is an application like managed spy but without the .net
framework limitation. The use must think he use the same application.

Not sure if it's the best way to do this but afters weeks trying to
find a solution is the best solution found...

Ok so maybe there is a win api to hide an application from the taskbar
and send a message to the window to change the visible state... As
suggested, the communication between windows is simply done by using
sendmessage for now.

thanks... if you have any other ideas...
 
SQACSharp said:
Ok imagine an application like http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy.
This application can show windows/controls properties at runtime but
only if the application use the same .net framework as managed spy.
(2.0)

So I decide to install VS 2002, VS 2005 and VS 2008 to compile
different version of my application. Let's say ManagedSpy1.0.exe,
ManagedSpy2.0.exe and ManagedSpy3.0.exe

I start the tree applications in background but only one will be
visible at a time...if the user select a Window/Control that use a
different .net framework I need to hide the current ManagedSpy and
show another managed spy .exe that use the same .net framework as the
targeted application.

The goal is an application like managed spy but without the .net
framework limitation. The use must think he use the same application.

Not sure if it's the best way to do this but afters weeks trying to
find a solution is the best solution found...

Ok so maybe there is a win api to hide an application from the taskbar
and send a message to the window to change the visible state... As
suggested, the communication between windows is simply done by using
sendmessage for now.

thanks... if you have any other ideas...

OK, that explains the problem much better. I'm not sure I can help you. It
sounds like you have a way from an excutable to look at a running window, and
determine from it whether it is .Net 1.0, 2.0, 3.0 (3.5, etc...) or not using
..Net at all (you need to consider this, right?). I would like to know how to
do this.
 

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

Back
Top