Re: Form Background Image Disappears
Worked great!. I had to add some logic incase the users didn't enter frm2 because then there was nothing to dispose.
Thanks guys,
John
"Cor Ligthert" wrote:
[color=blue]
> Hi YEaHRight,
>
> It is almost the same code I would have showed for this.
>
> However one thing, why are you doing this?
>[color=green]
> > Private Sub Form1_Closing(B yVal sender As Object, ByVal e As
> > System.Componen tModel.CancelEv entArgs) Handles MyBase.Closing
> > fm = Nothing
> > End Sub
> >[/color]
> And not
> fm.dispose
>
> A class object should in my opinon never be set to "nothing" in VB.net only
> properties.
>
> Cor
>
>
>[/color]
Worked great!. I had to add some logic incase the users didn't enter frm2 because then there was nothing to dispose.
Thanks guys,
John
"Cor Ligthert" wrote:
[color=blue]
> Hi YEaHRight,
>
> It is almost the same code I would have showed for this.
>
> However one thing, why are you doing this?
>[color=green]
> > Private Sub Form1_Closing(B yVal sender As Object, ByVal e As
> > System.Componen tModel.CancelEv entArgs) Handles MyBase.Closing
> > fm = Nothing
> > End Sub
> >[/color]
> And not
> fm.dispose
>
> A class object should in my opinon never be set to "nothing" in VB.net only
> properties.
>
> Cor
>
>
>[/color]
Comment