Ramil,
It works.
Here is the C# version.
public ImportSection() : base() { // This call is required by the Windows Form Designer. this.InitializeComponent();
// Add any initialization after the InitializeComponent() call ((Interprise.Presentation.Base.BaseForm)Host).FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnHostClosing); }
private void OnHostClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { // clean up code }
Thank you very much. |