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 / Windows Forms / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

Showing Minimized form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kimera.Kimera@gmail.com - 31 Dec 2006 00:19 GMT
I want to show the form when the option to show is clicked on a systray
icon, but nothing is shown. The only way i can make this shown is to
add Me.Show, however this gives a entirely shrunk window, that now wont
hide again (even with adding Me.Hide)

Could anyone give me the reason for this and help me solve this one :D?

On Load this form is set to :
           ShowInTaskbar = False
           Me.WindowState = FormWindowState.Minimized

and the systray is also loaded to add controls.

   Private Sub MnuShowHide_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MnuShowHide.Click
       If Hidden = False Then
           ShowInTaskbar = False
           Me.WindowState = FormWindowState.Minimized
           MnuShowHide.Text = "Show"
           Hidden = True
       Else
           If Hidden = True Then
               ShowInTaskbar = True
               Me.WindowState = FormWindowState.Normal
               MnuShowHide.Text = "Hide"
               Hidden = False
           End If
       End If
   End Sub
Peter Ritchie [C# MVP] - 31 Dec 2006 15:46 GMT
If you're looking to create an application that is notification-icon-based,
that may never show a form, you should use the ApplicationContext class with
Application.Run.

Jessica Fosler provides a good example of this at
http://www.windowsforms.net/articles/notifyiconapplications.aspx

Signature

Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#

> I want to show the form when the option to show is clicked on a systray
> icon, but nothing is shown. The only way i can make this shown is to
[quoted text clipped - 25 lines]
>         End If
>     End Sub

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.