I am working with windowsFrom in c#. I am trying to call mainfrom method in one of the from in user control. I have mainfrom like this
namespace Project {
Try this:
From user control try this:
MainForm form = this.TopLevelControl as MainForm; form.TempCommand();