How to open c# file in c# file

  • Thread starter Thread starter Wackyduck
  • Start date Start date
W

Wackyduck

Guest
So I have this C# file (Program.cs) and another c# file (CoolThing.cs). I want to open CoolThing.cs from Program.cs. This is the code in Program.cs:

CoolThing rw = new CoolThing();
rw.Show();


I got that from a StackOverflow page. But, I get an error saying:

Error CS1061 'CoolThing' does not contain a definition for 'Show' and no accessible extension method 'Show' accepting a first argument of type 'CoolThing' could be found (are you missing a using directive or an assembly reference?)

What do I do to fix this? Thanks!

Continue reading...
 
Back
Top