Ejemplo n.º 1
0
 //provides the title bar controls
 private void titleBar_Controls(object sender, EventArgs e)
 {
     //closes the application
     if (sender == btnClose)
     {
         TitleBar.Close();
     }
     //maximize and rerstore the application
     else if (sender == btnMax)
     {
         TitleBar.Maximize(this);
     }
     //minimize the application
     else if (sender == btnMin)
     {
         TitleBar.Minimize(this);
     }
 }
Ejemplo n.º 2
0
 //closes the application
 private void btnClose_Click(object sender, EventArgs e)
 {
     TitleBar.Close();
 }