Nexus Posted July 17, 2003 Posted July 17, 2003 hi, Can somebody please explain how I minimize a program to the taskbar? in Visual Basic.NET, thanks Quote
*Experts* Volte Posted July 17, 2003 *Experts* Posted July 17, 2003 In the form you wish to minimize: Me.WindowState = FormWindowState.Minimized Quote
Nexus Posted July 18, 2003 Author Posted July 18, 2003 no sorry, not the taskbar, I mean where the clock is, the background programs Quote
*Experts* Volte Posted July 18, 2003 *Experts* Posted July 18, 2003 You need to use the NotifyIcon control. Look in the MSDN for more information. Quote
Leaders dynamic_sysop Posted July 18, 2003 Leaders Posted July 18, 2003 lol just as i make an example : Private WithEvents nIcon As NotifyIcon Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click nIcon = New NotifyIcon() nIcon.Icon = Me.Icon nIcon.Visible = True Me.ShowInTaskbar = False End Sub Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing If Not nIcon Is Nothing Then nIcon.Icon = Nothing nIcon.Visible = False nIcon = Nothing End If End Sub Private Sub nIcon_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles nIcon.DoubleClick MessageBox.Show("i'm how you get in the area where the clock is!") Me.Close() End Sub Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.