I have created a Windows Application in which one MDI form (frmMainForm) and several child form.
Application is working fine but Now I want to breake the child forms in a class (.dll) and call them into main project.
In Current project "mainmodule" - I have assign MDI form as
frmMainMenu contain the "StatusBar1" for message display
In child form (frmComp) I used to display the text in StatusBar panel like -
Now I create a class file in which copy "frmComp"
code like -
But code like earlier show error message "'StatusBar1' is not a member of 'System.Windows.Forms.Form'" -
Pls guide how to rectify the error and display the message in statusbar panel
Application is working fine but Now I want to breake the child forms in a class (.dll) and call them into main project.
In Current project "mainmodule" - I have assign MDI form as
HTML Code:
Public MainForm As New frmMainMenu
In child form (frmComp) I used to display the text in StatusBar panel like -
HTML Code:
MainForm.StatusBar1.Panels(2).Text = "Saving Record..."
code like -
HTML Code:
Public gl_strScreenName As String
Public gl_strUserName As String
Public MainForm As System.Windows.Forms.Form
Public Sub New(ByVal ScreenName As String, ByVal UserName As String, ByVal mForm As Form)
MyBase.New()
'This is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent()
End Sub
But code like earlier show error message "'StatusBar1' is not a member of 'System.Windows.Forms.Form'" -
HTML Code:
MainForm.StatusBar1.Panels(2).Text = "Saving Record..."