public MainForm()
{
InitializeComponent();
System.Windows.Forms.Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new UnhandledExceptionEventHandler(Application_UnhandledException);
disableControlsForPrinting();
Stop_Btn.Enabled = false;
}