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

How to hide an app at at startup

MJB

I have an application that I need to hide at startup in the system tray.
I found this article on how to do it:
http://msdn.microsoft.com/library/de...sinception.asp
The problem with this method is that when I call the Hide() function on
f1 it causes the form to close which exits the app. Any other
approaches to hiding the form at startup would be appreciated.

Thanks
Mar 30 '06 #1
6 14133
> I have an application that I need to hide at startup in the system tray.

Ummm... then why have an interface at all?

By "at startup" do you mean system startup or application startup?

Is the desired result to have the program running without the user knowing it?

Mar 30 '06 #2
MJB
It is a service monitoring/controller app. It starts up via the Start
up folder. Why display it on the desktop when it can be tucked nicely
in the System Tray until the user needs it? Any ideas?

PIEBALD wrote:
I have an application that I need to hide at startup in the system tray.


Ummm... then why have an interface at all?

By "at startup" do you mean system startup or application startup?

Is the desired result to have the program running without the user knowing it?

Mar 30 '06 #3

"MJB" <mb*@email.com> kirjoitti
viestissä:uh**************@TK2MSFTNGP11.phx.gbl...

I have an application that I need to hide at startup in the system tray.


Wouldn't it work if you do:

- set your application form WindowState from properties to to minimized
- use notifyIcon and set it on form LOAD event to something
That way application form should start minimized.

And if you want hide app from taskbar, just set form property ShowInTaskbar
to false, but REMEMBER to set

this.WindowState = FormWindowState.Normal;

on notifyIcon click or dblclick event or something..

<snip>
Mar 30 '06 #4
MJB
Ahh, it was the hide from taskbar that did the trick.

Thanks!

orrowMan wrote:
"MJB" <mb*@email.com> kirjoitti
viestissä:uh**************@TK2MSFTNGP11.phx.gbl...
I have an application that I need to hide at startup in the system tray.


Wouldn't it work if you do:

- set your application form WindowState from properties to to minimized
- use notifyIcon and set it on form LOAD event to something
That way application form should start minimized.

And if you want hide app from taskbar, just set form property ShowInTaskbar
to false, but REMEMBER to set

this.WindowState = FormWindowState.Normal;

on notifyIcon click or dblclick event or something..

<snip>

Mar 30 '06 #5
Don't show it.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"MJB" <mb*@email.com> wrote in message
news:uh**************@TK2MSFTNGP11.phx.gbl...

I have an application that I need to hide at startup in the system tray. I
found this article on how to do it:
http://msdn.microsoft.com/library/de...sinception.asp
The problem with this method is that when I call the Hide() function on f1
it causes the form to close which exits the app. Any other approaches to
hiding the form at startup would be appreciated.

Thanks

Mar 30 '06 #6
> It is a service monitoring/controller app. It starts up via the Start
up folder. Why display it on the desktop when it can be tucked nicely
in the System Tray until the user needs it? Any ideas?


Ah, then you don't mean to put it in the System Tray and then hide it as the
original post implied?
Mar 30 '06 #7

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

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
2
by: Peter K | last post by:
How do I Hide/Unhide the Main Database Window in VB?
1
by: mr.mcgrew | last post by:
Out of nowhere a database I had set to hide the DB window at startup began showing the dang window. It doesn't matter how many times I set/unset/reset the property, it has no effect. I've tried...
5
by: Kirk Graves | last post by:
Can anyone tell me why this code does not work? Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Hide() End Sub If runs, but the...
4
by: Matthew | last post by:
The following code does not hide the form. Any ideas why? Also, is there a workaround? I have VB.NET 2003. I have a system tray icon, and want to have that be the only thing showing when the...
4
by: BrianDH | last post by:
Hi I have an application with 3 windows forms. One of which I load at startup but hide, then show/hide based on users click. How can I test to see if the windows is hidden, or is at the moment...
3
by: Gil | last post by:
on start up i have a form that opens but i want it to stay hidden. i tried a few things so far and i had no luck. i did : Private Sub Form_Load() me.visible = false End Sub Private Sub...
11
by: Nick 'The database Guy' | last post by:
Hi People, How do you go about hiding the database window. The reason for doing this is that sometimes have to manually add data to tables. I have a fully interatctive menu system from which...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.