Hi all,
I've a little, but very annoying problem with a function.
This is what I have:
The program starts with the MainFrame.
In the MainFrame starts another frame with this code:
Dim form As New Pictureform
form.MdiParent = Me
form.Show()
In the MainFrame there is a function that I also want to use in the form "Pictureform". The function is public, so this is not the problem:
Public Sub startscan()
...
End Sub
The code in Pictureform to execute the function is the problem:
Private Sub btnOpnieuw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpnieuw.Click
MainFrame.startscannen()
End Sub
MainFrame is also Public.
"MainFrame is not declared", can someone help me?
Thanks in advance
I've a little, but very annoying problem with a function.
This is what I have:
The program starts with the MainFrame.
In the MainFrame starts another frame with this code:
Dim form As New Pictureform
form.MdiParent = Me
form.Show()
In the MainFrame there is a function that I also want to use in the form "Pictureform". The function is public, so this is not the problem:
Public Sub startscan()
...
End Sub
The code in Pictureform to execute the function is the problem:
Private Sub btnOpnieuw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpnieuw.Click
MainFrame.startscannen()
End Sub
MainFrame is also Public.
"MainFrame is not declared", can someone help me?
Thanks in advance