I've never had this before and I wanted to see if any knew what might be happening. I have a form and in the code there is a public function that is called which sends text to a label on the form making sure to do so in the thread for the form. I have a function in a module and in that function it calls to the forms function so the user gets a message of what it is working on at the time. I've used this code before in other programs and have done similar things before as well. Here is the funny part for some reason rather than using the function on the current form it some how creates a whole new instance of the form instead. I've never seen that happen before. I got around this by asking the application for the open from and setting it as an object.
The call before was simply:
main_frm.sMessage("Working")
The new is:
Dim frm As Object = Application.OpenForms.Item("main_frm")
frm.sMessage("Working")
Any ideas what I could be missing that would cause a simple call to a function instead create a whole new instance?
-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
The call before was simply:
main_frm.sMessage("Working")
The new is:
Dim frm As Object = Application.OpenForms.Item("main_frm")
frm.sMessage("Working")
Any ideas what I could be missing that would cause a simple call to a function instead create a whole new instance?
-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!