Completely Invisible/Hidden Application  
Author Message
aler2u





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

I wanna create such an small application/exe which will be completely hidden/invisible to the user when it is run. Even it will not be displayed in the taskbar, system tray, task manager(application tab).

I've no problem if it is:

a) a console application or any other types of application (but i don't wanna see the splash screen of MS-DOS screen when I'll click on my .exe file)

b) only showed in the task manager (processes tab).

Anybody can help me providing snippet of code/idea or anything else.



Visual C#17  
 
 
Paul Louth





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

Sounds like you want to create a Windows Service application.

http://www.codeproject.com/cs/system/WindowsService.asp


 
 
Marius Bancila





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

What is this application supposed to do Why don't you create a window service It is most suiteable for what you seem to need.

 
 
micvos





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

Create a Form application. Set FormBorderStyle = None, set Size = 0,0 and set ShowInTaskbar = false. Now you have a hidden application.

 
 
Baris ERGUN





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

If you are using Visual C++ 6.0 I recomend you to use ATL COM Service

If you are using .NET Development There is C# Service application for you.



 
 
Paul Louth





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

Still shows up in the task-manager, which was one of his pre-requisites.  A Windows Service will only show in the Processes.
 
 
micvos





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

No it won't show up in the taskmanager under applications but only under processes. Most hidden applications are build this way. In this way you don't see a form but there is still a message loop you can use. Use Spy++ to find examples of this use. ctfmon.exe is for example a hidden office application with a hidden window.

 
 
aler2u





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

micvos,

Thanks, your idea is very good one but not enough for me. I've tried with what you've said. Yes the program becomes hidden from task bar, application tab of task manager but it is still accessible by pressing ALT+Tab (switching between application). Is there anyway to resolve it


 
 
aler2u





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

Paul Louth,

Many many thanks for your kind direction. I have gone through with this Windows Service concept. Here the only problem is, I've to INSTALL that service. Actully I just want to click on an .exe (my application) and that will start out of sight of users without any notification.

Anyway, is it possible to run an Windows Service application without installing it as Windows Service


 
 
ahmedilyas





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

there isnt AFAIK. it will show up in task manager yes as is an application that is running in the current account of the user that is logged in/started the app.

I believe using the Windows service maybe a better solution for what you are trying to aim for. you do need to install it in order to run it.



 
 
Fernando Nicolet





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

By adding Hide() on the Activate event makes your application not accessible by pressing ALT-TAB.

Hope it helps.

Fernando


 
 
ahmedilyas





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

there is no activate event (its a method to activate the control) but an activated event and yes it appears to work. Interesting

 
 
aler2u





PostPosted: Visual C# General, Completely Invisible/Hidden Application Top

Thanks Everybody, all of YOU are really helpfull. Finally I've decided to create a complete invisible/hidden application in this manner though Windows Service is a better solution:


1. FormBorderStyle = None

2. Size = 0,0 [Size doesn't matter if you use hide() method & WindowState=Minimized]

3. ShowInTaskbar = false

4. this.hide()[In the form load event]

5. WindowState=Minimized