G
Guest
Hello:
What is the correct way to target a method on the MainForm from a
UserControl. For example:
namespace SampleApp
{
public partial class MainForm : Form
{
internal void ShowControl()
{
//code to make a control visible
}
}
public partial class UserControl1 : UserControl
{
private void Button_Click(object sender, System.EventArgs e)
{
//how do I target ShowControl() in the MainForm
}
}
}
Thank you!
What is the correct way to target a method on the MainForm from a
UserControl. For example:
namespace SampleApp
{
public partial class MainForm : Form
{
internal void ShowControl()
{
//code to make a control visible
}
}
public partial class UserControl1 : UserControl
{
private void Button_Click(object sender, System.EventArgs e)
{
//how do I target ShowControl() in the MainForm
}
}
}
Thank you!