James_dean
February 2nd, 2007, 12:43 AM
I have the following
Form1^ myFrm = gcnew Form1();
myFrm->ShowDialog();
HWND handle = (HWND)myFrm->Handle.ToPointer();
The handle is null for some reason even though the form is active. Also the result of "myFrm->Active" is true?. How can that be true when the handle is null.....
please somebody explain why my activeform is not set and if possible how to set the Form::ActiveForm property.
Form1^ myFrm = gcnew Form1();
myFrm->ShowDialog();
HWND handle = (HWND)myFrm->Handle.ToPointer();
The handle is null for some reason even though the form is active. Also the result of "myFrm->Active" is true?. How can that be true when the handle is null.....
please somebody explain why my activeform is not set and if possible how to set the Form::ActiveForm property.