|
-
Sep 5th, 2007, 05:37 PM
#1
[RESOLVED] [2.0] Hiding a winform?
For some reason i cant figure this out anymore...
I want to completely hide my windows form and show an icon in tray area. For some reason the Hide() method or the visible property dont do any good.
Ive tried setting the opacity to zero as well, but it still shows up when you press Alt Tab...
is this related to .NET 2.0 changes any how?
any win api calls suggested instead?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 5th, 2007, 07:10 PM
#2
Re: [2.0] Hiding a winform?
I'm guessing that you are calling Hide or setting Visible in the Load event handler. That's no use because the Load event is raised BEFORE the form is displayed for the first time, so it is made visible at the end of the Load event handler no matter what. If you want a form to appear in the tray from the start then you should set its WindowState to Minimized and its ShowInTaskbar to False in the designer. You then handle the Shown event, which is raised AFTER the form is displayed for the first time, and call Hide or set Visible.
-
Sep 6th, 2007, 05:03 PM
#3
Re: [2.0] Hiding a winform?
hey thanks!
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|