Ho questo cod, legato a un prog di medie dimensioi(almeno per me):
codice:
 private void btCancel_Click(object sender, System.EventArgs e)
		{
			SiteManagerUtil.SitMan manag = new SiteManagerUtil.SitMan();
			try
			{
				manag.cancella();
			}
			catch(Eceptions e)
			{
				this.lbError.Visible = true;
				this.lbError.Text = e;
			}
		}
Dove SiteManagerUtil è un lb mia esterna di cui se volete posto il cod.
Ma mi da sti errori:
c:\documents and settings\admin\documenti\visual studio projects\site manager\cancel.cs(112,10): error CS0246: The type or namespace name 'Eceptions' could not be found (are you missing a using directive or an assembly reference?)
c:\documents and settings\admin\documenti\visual studio projects\site manager\cancel.cs(115,25): error CS0029: Cannot implicitly convert type 'System.EventArgs' to 'string'