System.Windows.Forms.Label.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
		protected override void Dispose(bool disposing)
		{
			base.Dispose (disposing);

			if (disposing)
				string_format.Dispose ();
		}

Usage Example

Example #1
0
 /// <summary>
 ///    Clean up any resources being used.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             // Release the added managed resources
             btnBrowse.Dispose();
             lblResults.Dispose();
             txtResults.Dispose();
             lblSearchText.Dispose();
             txtSearchText.Dispose();
             lblFiles.Dispose();
             txtFiles.Dispose();
             btnSearch.Dispose();
             ckRecursive.Dispose();
             lblDir.Dispose();
             txtDir.Dispose();
             lblCurFile.Dispose();
             txtCurFile.Dispose();
         }
     }
     finally
     {
         // Call Dispose on your base class.
         base.Dispose(disposing);
     }
 }
All Usage Examples Of System.Windows.Forms.Label::Dispose