Product : Engine, Version : 5.0.1.1036, ArticleID : 41023865

HowTo : Closing Modal form when a Vdraw command is active

Article41023865
TypeHowTo
ProductEngine
Version5.0.1.1036
Date Added2/22/2005
Submitted byPaul Bawin
Keywords

Subject

Closing Modal form when a Vdraw command is active

Summary

Closing Modal form when a Vdraw command is active.

Solution

Add this code to the second form.

protected override void WndProc(ref Message m)
{
     if(m.Msg == 16)
{
    
this.vdraw.CommandAction.Cancel();
}
     base.WndProc(ref m);
}