Hi,

I having some trouble creating/using functions.
What I thought I could do:
VB Code:
  1. 'frmMain MDI Parent
  2.     Private Sub mnuFileNew_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuFileNew.Click
  3.         Dim frmDoc As New frmDocument()
  4.         frmDoc.MdiParent = Me
  5.         frmDoc.Show()
  6.     End Sub
  7.  
  8.     Private Sub mnuFileSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuFileSave.Click
  9.         Dim activeChild As Form = Me.ActiveMdiChild
  10.  
  11.         If (Not activeChild Is Nothing) Then
  12.            activeChild.MySaveFunction
  13.         End If
  14.     End Sub
  15.  
  16. 'frmDocument
  17.     Public Function MySaveFunction()
  18.         rtfbox.savefile("d:\test.txt")
  19.     End Function

But then it keeps saying that MySaveFunction is not a member of 'System.Windows.Forms'.
What should I do???

John