Language in mdi forms
Posted
by
WFgo
on Stack Overflow
See other posts from Stack Overflow
or by WFgo
Published on 2013-11-09T03:11:29Z
Indexed on
2013/11/09
3:54 UTC
Read the original article
Hit count: 96
vb.net
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!
© Stack Overflow or respective owner