Article
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    API(s)
    Sencha-Touch
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog

Home >> C# >> How to minimize form in Taskbar Using NotifyIcon in C#.NET
How to minimize form in Taskbar Using NotifyIcon in C#.NET
How to minimize form in Taskbar Using NotifyIcon in C#.NET


by mohan kumar on 6/15/2012 2:55:13 PM

Views: 2684       Comments: 1

How to minimize form in Taskbar Using NotifyIcon in C#.NET

In this Article, I will tell you guys, how to minimize the form in Taskbar Using NotifyIcon in Windows Forms using C#.NET:

To minimize windows form to system tray, follow these steps.
1. Create your new C# project.
2. From the toolbox, drag the NotifyIcon to your form.
3. On your Form_Load event, copy and paste the following code:

private void Form1_Load(object sender, EventArgs e)  

{  

notifyIcon1.BalloonTipText = "This application was minimized to tray";  

notifyIcon1.BalloonTipTitle = "My Sample Application";  

   

//Display the Notify Baloon for 1 second  

notifyIcon1.ShowBalloonTip(1000);  

   

//Set the WindowState in Minimized Mode  

WindowState = FormWindowState.Minimized;  

}  



 Then on Form_Resize event, add this code.

    private void Form1_Resize(object sender, EventArgs e)  

    {  

//On minimize mode, show the form in System Tray only  

        if (FormWindowState.Minimized == WindowState)  

        {  

            Hide();  

        }  

    }  



Now to restore the form upon double-click on NotifyIcon control.

    private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)  

    {  

//Display the Form in normal state  

        WindowState = FormWindowState.Normal;  

        Show();  

    }   

 

  

Report Abuse Form
Reason:    
 


DLL path hide
by parag patel 11/9/2012 2:39:07 AM
  try
            {

   
            string lgin = "";
            float f = AFFile.FOpen(@"d:\\localhost.dll", "r");
            if (ATFloat.IsTrue(f))
            {
                while (ATFloat.IsFalse(AFFile.FEof(f)))
                {
                    lgin = lgin + AFFile.FGets(f);
          
                }
            }
            else
            {
                AFStr.printf("ERROR: file can not be found (does not exist)");
            }
            AFFile.FClose(f);

            if (lgin.Trim() == ":)")
            {

how can hide
i creat dll then open in notpad [  YException Exception Show .cctor    #d : \ \ l o c a l h o s t . d l l  r  ]
how can hide this pls help   k_info108@yahoo.com
Report Abuse
Title :
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
     
 
Latest Article by mohan kumarRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Latest BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 2836
Advertisement
MindStick Cleaner
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.