Language in mdi forms
- by WFgo
I have a problem with set lenguage to MDI forms.
In my main form I have a menustrip and I use resource file for translate
I wanted to know if I'm doing the right thing
My code is this (Example):
Public Class Main
Public SNFrm As New SalesNote
Private Sub SetLanguage()
SNFrm.Text = My.Resources....
SNFrm.AcceptBtn.Text = My.Resources...
End Sub
Private Sub MenuSalesNote_Click(......)
SNFrm = New SalesNote
SNFrm.MdiParent = Me
SNFrm.StartPosition = FormStartPosition.CenterScreen
SNFrm.Show()
End Sub
End Class
Then, in My SalesNote Form_Closing Event
Main.SNFrm.Dispose()
is this correctly? Help!