Cannot close a form in the load event


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
This error I am getting I dont think is a SF specific error but rather a dot net error. I have some validation I do the minute I load a form. If validation fails, I then want to close the form and exit. The code I have on the Load event

if (validation = false)
{this.close();}

but I get a message :  Value Close() cannot be called while doing CreateHandle().

Do I have this code in the right place ?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search