473,397 Members | 1,950 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,397 software developers and data experts.

switching .exe

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!
Dec 14 '07 #1
4 1344
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" <ls*********@hotmail.comwrote in message
news:27**********************************@s12g2000 prg.googlegroups.com...
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!

Dec 14 '07 #2


"SQACSharp" wrote:
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.
Thanks for any suggestion!
Dec 14 '07 #3
Ok imagine an application like http://msdn.microsoft.com/msdnmag/is.../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...
Dec 14 '07 #4


"SQACSharp" wrote:
Ok imagine an application like http://msdn.microsoft.com/msdnmag/is.../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.
Dec 14 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dennis Wheeler | last post by:
I'm trying to find a commandline solution for switching projects. Currently I have to modify the IIS virtual directory path to the source files, and then open the solution file in .Net to be...
3
by: MLH | last post by:
I seem to remember a post in the distant past discussing how to switch to another open application window. IE, if WordPad is running, some API function that'll allow me to switch the focus to that...
2
by: Johann Blake | last post by:
The following is a bug I have discovered using tab pages and threads and I am looking for a workaround. Create a new Windows Forms application and add a tab control with two tab pages. Add a...
6
by: Nicky | last post by:
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window...
5
by: JRB | last post by:
Hi, I'm creating a small C#program that communicates through the serial port. I have a separate thread that continuously takes in data from an external device in a while loop. The problem is that...
4
by: sashan | last post by:
Hi Is there a way to enable Emacs/Vim style buffer switching in the VC++ editor? For those that don't know this is where you hit a shortcut key in Emacs/Vim and then type the partial name of the...
4
by: Jeremy Holt | last post by:
Hi, In a windows.forms application I would BeginInvoke a delegate on the UI thread to collect data from a database. When the call returns to the AsyncCallback, if the Control.InvokeRequired =...
2
by: Frank Swarbrick | last post by:
I had asked a question a few weeks ago about having problems at times accessing DB2 Express-C 9.1, and getting "SQL1032N No start database manager command was issued. SQLSTATE=57019" even when the...
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
4
by: adlloyd | last post by:
Hi all, I've got an application that's written in C++ making use of MFC (VS6). Its purpose is to process SMS messages received from a GSM modem connected via a serial port (USB connection). The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.