Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Invisible App Run

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LVP - 06 Feb 2008 22:31 GMT
Hi,

I have the need to run an on demand process (ProcessB) that is invisible.
I can not use a Windows Service unless I can trigger it OnDemand and the
Client will allow me to Install a Windows Service.
The Client is not willing to install a windows service.

So AppA runs ProcessB but ProcessB is invisible to the user and the TaskBar.

AppA can not use ProcessB as a class, can not instantiate it just issues an
event for the Windows OS to run ProcessB.
No Source Code of AppA Available.

What other option do I have.

Now ProcessB is a console Application.  But it shows up and visible.

How can I hide ProcessB from not showing up in the TaskBar.
How can I make the Console Window with zero Height and width or Invisible.

Thank You

LVP
Marc Gravell - 06 Feb 2008 22:51 GMT
Presumably you are in control of ProcessB? I guess you could simply
recompile it as a win exe, but don't change any code (i.e. don't start
any forms etc - just do the same processing you are doing now). That
way there will be neither a console not a taskbar item.

Sounds fishy, though...

Marc
LVP - 06 Feb 2008 23:06 GMT
Marc,

This is done for Cosmetic reasons.  What do you mean by fishy?

The Win App compilation works also.

I tried "user32.dll" and show or hide the window. and it works on the Console window.
I like the Win App Compilation Better less complex and less things to go wrong.

I was wondering if there is any other tricks.

thanks you,

LVP

> Presumably you are in control of ProcessB? I guess you could simply
> recompile it as a win exe, but don't change any code (i.e. don't start
[quoted text clipped - 4 lines]
>
> Marc
LVP - 07 Feb 2008 00:36 GMT
Marc,

If I am to use as WinApp how to pass parameters then.
I can pass a console Args[],

Thanks,

LVP

> Presumably you are in control of ProcessB? I guess you could simply
> recompile it as a win exe, but don't change any code (i.e. don't start
[quoted text clipped - 4 lines]
>
> Marc
Family Tree Mike - 07 Feb 2008 03:28 GMT
Environment.GetCommandLineArgs will get the passed parameters.

> Marc,
>
[quoted text clipped - 13 lines]
> >
> > Marc
Marc Gravell - 07 Feb 2008 08:03 GMT
You can pass a win exe args[]

The only thing you need do is recompile as a win exe ;-p

As for "fishy"; I meant no offence, but we regularly see people with
needs to build stealth apps (usually at corporate's request), which
simply isn't a good way to do things... but if it is just to do some
work as a process, then fine...

Marc
LVP - 07 Feb 2008 16:37 GMT
Yes nothing Fishy just due to limitations and restrictions and for cosmetics
I have to do that.
Thanks for the help

LVP

> You can pass a win exe args[]
>
[quoted text clipped - 6 lines]
>
> Marc
LVP - 07 Feb 2008 16:37 GMT
Thanks Mike, that is good.

LVP

> Environment.GetCommandLineArgs will get the passed parameters.
>
[quoted text clipped - 15 lines]
>> >
>> > Marc
christery@gmail.com - 07 Feb 2008 19:39 GMT
Had a problem like that, using VBA/Word but when running WinZip/Zip I
only put in the instructions to close the black window that appear...
(when finished of course)

didnt bother to figure out how to close it, just put it in the user
istructions instead.

The users must have some important task to preform other than
grumbling about how slow everything is...

Hell, if they want they can have dos/wordstar on a 8088 and two 160k
5,25" floppys back (one for dos/ws and one for documents),
that wasnt so long ago.. well the machine I was thinking about is the
100$ computer - wait... we just did that, we are using thin
clients...

now If I only could outfit them with 160KB floppys so they wont fill
up the SAN with .docx junk, that would be perfect... no taking
anything home either, or bringing wiri to work...

//CY Who stole chr$(12)?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.