I have a question on accessing a methode in a form in VB.net. What I would like to learn how to do is use a methode in form1.vb from form2.vb. I will give a small example of what i would like to learn to do. Please note that form1 would be the form that loads first when you start the VB program.
Public Class form1
<all the form setup methodes here> 'There is a StatusBar declared as StatusBar1
Public Sub UpDate_Panels(ByVal PanelNo As Int, ByVal txtMyText As String)
'Used to send text to the panels
StatusBar1.Panels.Item(panelNo).Text = txtStr
Public Class form2
<all the form setup methodes here>
Private Sub DoingSomething()
UpDate_Panels(1, "Analyzing Data")
<perform task to analyze the data here>
From the example above how do I get the methode 'DoingSomething()' in Form2 to be able to access the methode 'UpDate_Panels()' in form1?
I have played around with the Friend keys word with no luck, I was never able to see the methode UpDate_panels as accessable in Form2. My reference book doesn't do a very good job on explaining the proper use of Friend, Public, Private, Protected, ect...
Thanks for any help