views:

18

answers:

1

Hi I have a user-control that contains a button. the user control is placed on my main form. when the button on the user control is clicked I need to to call a method that is located in the mainform.vb

+1  A: 

You don't call a method in the parent form, instead you raise an event which the parent form has a handler for. Here is a real simple example of what you do. Here, here and here are a few more related examples.

slugster