Search code examples
c#winformstransfer

Form is added in solution explorer but cannot be called


As title suggested I have added an existing form to my project named Payroll but before I added it to Payroll I renamed the form to frmMain from Form1 and I changed it's name from it's original project Samp Prog while changing it's name it asked me if I would like to change everything related to the said file Form1 including the .cs and .designer.cs but every time I call frmMain in any other forms exisisting in Payroll it does not show in the suggestions.


Solution

  • Check that both have the same namespace, or that you are calling it with the whole namespace