||Re: Modal Form
||Sat, 14 Nov 2020 09:51:52 -0500
On 11/14/2020 12:12 AM, Don wrote:
> Why Doesn't This Code Open a Modal Form?
> Local f
> f = New Form2()
> f.mdi = false
> 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
Who Knew, well I guess everyone but me.
But, You don't have to do that with a modeless Form?
I had even set this.setfocus() in the forms constructor code - didn't work.
Why do You think the Empty Modal form get focus?