Lets say that in the loadmain you set text for a label like this
Label1.Text = "Load Main"
But you want to do the same thing if you click a button, then create a function called for example
private void SetLabel()
{
Label1.Text = "Load Main"
}
then your load main will have this
private void LoadMain()
{
SetLabel()
}
and the button event
private void buttonevent()
{
SetLabel()
}
I hope you understand the idea. regards