Kbase P175693: Cannot CAST the ACTIVE-FORM to the correct class if it points to a form instance that is not inherit
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  20/10/2010 |
|
Status: Unverified
SYMPTOM(s):
Cannot CAST the ACTIVE-FORM to the correct class if it points to a form instance that is not inherited from Progress.Windows.Form
ACTIVE-FORM cannot be cast to the correct class if it inherits from System.Windows.Forms.Form
FACT(s) (Environment):
Windows
OpenEdge 10.2x
CAUSE:
This is expected behavior. You cannot use ACTIVE-FORM if the Window with FOCUS is not a Progress.Windows.Form or a native ABL Window.
FIX:
If you directly instantiate .NET forms using System.Windows.Forms.Form or any other native .NET form class you must use the .NET ActiveForm property to identify the .NET native form instance that has FOCUS.