Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with modal forms 1

Status
Not open for further replies.

RedLion

Programmer
Sep 13, 2000
342
NL
Hi,

I've got a problem with a modal form. From my main class I call the form frmLoginBack and than I get the error:

The TO clause can only be used with modal Forms and FormSets.

The WindowStyle of the form is 1 - Modal.

I called the form by:

DO FORM frmLoginBack TO THIS.oUser

I've tried a few things, but they all didn't work.
Things tried:

- thisform.show(1) <== I've put in the load event of the form.

- Calling the form by:
DO FORM frmLoginBack TO THIS.oUser NOSHOW
login.show(1)


I don't know what little thing I'm missing here???

Thanks,

Charl
 
Hi Charl,

Since this appears to be a login form, check the ShowWindow property. If it is set to 1-As Top Level Form, the form is always modeless regardless of the WindowType property. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Thanks Jon,

Indeed that was the problem.........Thanks!

I'm learning every second.........


Charl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top