M
mqudsi
I'm making a system tray application, and I just can't figure out how
to make it hide on execution just like it used to in C++.
If I have a button the form and in the button's Click method i have
{this.Hide();}
The entire form will disappear.
But if I put "this.Hide()" in the from's onLoad code, it *doesn't* get
hidden.
Can anyone advise me as to what I'm doing wrong? Why would the same
code that hides the form just fine as an onClick method *not* work for
onLoad?
By Hide I mean for it to disappear from the taskbar, alt-tab, and main
window, but remain in the system tray.
Does .NET not allow hiding of forms upon load for security reasons or
something? Because that sounds pretty naive to me...
I'm sure there's a way though...
Thanks!
to make it hide on execution just like it used to in C++.
If I have a button the form and in the button's Click method i have
{this.Hide();}
The entire form will disappear.
But if I put "this.Hide()" in the from's onLoad code, it *doesn't* get
hidden.
Can anyone advise me as to what I'm doing wrong? Why would the same
code that hides the form just fine as an onClick method *not* work for
onLoad?
By Hide I mean for it to disappear from the taskbar, alt-tab, and main
window, but remain in the system tray.
Does .NET not allow hiding of forms upon load for security reasons or
something? Because that sounds pretty naive to me...
I'm sure there's a way though...
Thanks!