>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.