aler2u

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.



Re: Visual C# General Completely Invisible/Hidden Application

Paul Louth

Sounds like you want to create a Windows Service application.

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





Re: Visual C# General Completely Invisible/Hidden Application

micvos

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




Re: Visual C# General Completely Invisible/Hidden Application

Paul Louth

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



Re: Visual C# General Completely Invisible/Hidden Application

micvos

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.




Re: Visual C# General Completely Invisible/Hidden Application

aler2u

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





Re: Visual C# General Completely Invisible/Hidden Application

aler2u

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





Re: Visual C# General Completely Invisible/Hidden Application

ahmedilyas

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.






Re: Visual C# General Completely Invisible/Hidden Application

Fernando Nicolet

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

Hope it helps.

Fernando





Re: Visual C# General Completely Invisible/Hidden Application

ahmedilyas

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




Re: Visual C# General Completely Invisible/Hidden Application

aler2u

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