class from a class
is it possible to call a class from a class.
i have created two forms
PublicClass MAINVIEW
PublicSub BTNSEARCH_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles BTNSEARCH.Click
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OKThen
MsgBox(OpenFileDialog1.FileName)
CONTROL()
EndIf
EndSub
PublicSub BTNQUIT_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles BTNQUIT.Click
If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OKThen
MsgBox(SaveFileDialog1.FileName)
EndIf
EndSub
PublicSub MAINVIEW_Load(ByVal senderAs System.Object,ByVal eAs System.EventArgs)HandlesMyBase.Load
'TODO: This line of code loads data into the 'MYRECSDataSet.SONGFIELDS' table. You can move, or remove it, as needed.
Me.SONGFIELDSTableAdapter.Fill(Me.MYRECSDataSet.SONGFIELDS)
EndSub
EndClass
PublicClass CONTROL
PublicSub add(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles btnadd.Click
Dim artAsString
art = InputBox(" enter artist name")
End
EndSub
PrivateSub search(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles Button2.Click
EndSub
PrivateSub quit(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles Button3.Click
ExitSub
EndSub
EndClass
which automatically create a class to enter code. each class has button events in them. can i, amd how do i call a class procedure from a button event.
i haved tried
control()
but that just tells me its not a method
all the classes are set topublic and that never helped, all my books dont tell you about this, which is the point about having books( i thought).
they are not finished, i need to know waht is going on as i do it.
any help please

