Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aborting a form (in vfp return .f. in .INIT)
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 8.0
OS:
Windows 7
Network:
Windows NT
Database:
Jet/Access Engine
Application:
Desktop
Miscellaneous
Thread ID:
01533071
Message ID:
01533280
Views:
41
>Hmm. Worked for me in C# and should be the same in VB since wer'e just dealing with the same class.
 Form f = new Form();
>            f.Show();
and
protected override void OnLoad(EventArgs e)
>        {
>            this.Close();
>            base.OnLoad(e);
>         }
Not convinced that it's good practice but it does work....
>

Well it did not work for me. But unless I don't understand something, the .load is invoked in .new() so assuming the .close() has effect, f would not be instantiated and you get an exception when f.show() is executed no?

Thanks.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform