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 / March 2008

Tip: Looking for answers? Try searching our database.

systray question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jvcoach23 - 21 Mar 2008 14:23 GMT
please direct me to the correct news group if this is not the proper place
to ask.

I have the systray icon working.  what i can't get to work is so that when
i click the minimize icon the windows form, to get the icon to go away at
the bottom, i only want to be able to get the form back up by clicking on
the systray icon.

 Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
   Me.ShowInTaskbar = False
   Me.nIcon.Visible = True 'These lines need to run before you hide the
form for some reason....
   Me.Hide()
   e.Cancel = True 'Stops the form from closing after you hide it.
 End Sub

but that isn't getting it done..

anyone willing to help out
thanks
vvnraman - 22 Mar 2008 15:56 GMT
> please direct me to the correct news group if this is not the proper place
> to ask.
[quoted text clipped - 17 lines]
> anyone willing to help out
> thanks

Hi jvcoach23
I wrote a similar program is C#.
The code to hide, show, minimise or close the form should be
in the Form resize event.

There is a NotifyIcon on the Form which resides in the
system tray plus a ContextMenu.
There are currently three options on the contextMenu,
Oen, Minimise and Exit.

Rate this thread:







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.