J
John Smith
I need to:
a) Close a windows form from within the form's code itself
b) It must be able to occur after the form's constructor function is called
(like from another function that's called before .Show())
c) It must be able to occur before the form is actually viewable.
It's for security purposes.
If I add it to load, I get an error that you can't call close() or dispose()
while creating the window handle. I also tried doing it in the handlecreated
event for that reason, but I get the same error.
Any ideas (other than not calling .Show())?
a) Close a windows form from within the form's code itself
b) It must be able to occur after the form's constructor function is called
(like from another function that's called before .Show())
c) It must be able to occur before the form is actually viewable.
It's for security purposes.
If I add it to load, I get an error that you can't call close() or dispose()
while creating the window handle. I also tried doing it in the handlecreated
event for that reason, but I get the same error.
Any ideas (other than not calling .Show())?