On 11/13/2020 9:12 PM, Don wrote: > > Why Doesn't This Code Open a Modal Form? > > Local f > f = New Form2() > f.mdi = false > f.readmodal() > > > Class Form2 of Form // > This.Width = 25 > This.Height = 25 > This.Text = "Form2" > This.MDI = false > This.OnOpen = Class::FormOnOpen > ? "Form2 " > > Function FormOnOpen > ? > ? "Form2 Open" > *Form.WindowState = 0 > Return > EndClass
Are there any controls on the form? If not, there is nothing to get
focus, and therefore the form cannot open. There must be a control that
can gain focus, an entryfield, a pushbutton, anything ...