Calling a Public Subroutine/Function from another Form

  • Thread starter Thread starter deepu
  • Start date Start date
D

deepu

Hello Everybody,

I placed a toolbar on the MDIform . I want to declare some public
functions in the individual forms and am trying to call these when ever
a toolbar button is pressed. I worked this one in VB6.0 , but don't
know how to do it in VB.net.

Can anyone be of any help.

Thanks in advance

Deepaish Wali
 
There are several ways on how you can acomplish this however it depends on
the "style" you used when coding the forms

In the situation that i need to call methods from deeply nested childs in a
parent form i use the old fashioned callbyname method of VB this method only
needs a object pointer ( wich you can pass to the child , and a method
name ) this works fine for me and is verry flexible

It is also possible in VB.Net to call methods in child forms through the
instance name like this parent.child1.child2.methodname()


well i hope to have given you some ideas

regards

Michel Posseth [MCP]
 
Back
Top