Hi all
I have a menu, I have created a custom buttons on the menu. for example save button. I have form which a called as a child form to the menu.
I want to the save button and it will trigger a procedure/function in the child form.
Please how can I acheive this

Menu Command Buttons
brian_tsim
well if these are 2 seperate forms, then you create your instance of the childform - you need to declare this childform globally.
Dim theChildForm as new Form2() 'global
then from your parent class (form1) you can access that childform, if it has been instantiated. Now, in order to access elements in the child form, it must be made public so the "outside" classes can see it. Example:
'parent form
private sub DoSomethingOnChildForm()
if Me.theChildForm is nothing = false then
Me.theChildForm.DoTalk()
end if
end sub
'child form:
public sub DoTalk()
MessageBox.Show("hi!")
end sub
is this what you are after