Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Minimize window to system tray c#

private void frmMain_Resize(object sender, EventArgs e)
{
    if (FormWindowState.Minimized == this.WindowState)
    {
       mynotifyicon.Visible = true;
       mynotifyicon.ShowBalloonTip(500);
       this.Hide();
    }

    else if (FormWindowState.Normal == this.WindowState)
    {
       mynotifyicon.Visible = false;
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: Unity Children Destroy 
Csharp :: asp.net core get root url in view 
Csharp :: c# check lenght 
Csharp :: unity new vector3 
Csharp :: unity button onclick 
Csharp :: array to list c 
Csharp :: badlion 
Csharp :: c# get last 3 characters of string 
Csharp :: unity 3d camera movement script 
Csharp :: csharp datagridview filter column 
Csharp :: how to look around with mouse in unity 
Csharp :: c# linq select only unique values from list 
Csharp :: instantiate unity in parent 
Csharp :: array sort c# 
Csharp :: relative path c# 
Csharp :: max value data annotation c# 
Csharp :: scene switch unity 
Csharp :: c# insert spaces before capital letters 
Csharp :: unity interfaces 
Csharp :: show snackbar without scaffold flutter 
Csharp :: c# foreach object in array json 
Csharp :: c# string enum 
Csharp :: c# distinct array of objects by values 
Csharp :: disable button in android studio 
Csharp :: c# convert dictionary object to string 
Csharp :: how to remove all whitespace from a string in c# 
Csharp :: how to find the tag of an objecdt in unity 
Csharp :: convert int32 
Csharp :: c# loops 
Csharp :: How to post request C# with returning responsebody 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =