c# - 'type' does not contain a definition for 'member' and no extension method 'name' accepting a first argument of type 'type' could be found -


i'm pretty new using related graphics in programs , i'm stumped because it's giving me error 'type' not contain definition 'member' , no extension method 'name' accepting first argument of type 'type' found. i've instantiated object , it's still giving me issues , i'm trying call auto generated code visual studio made windows panel.

here code main:

namespace testerproject  {   public class program   {     static void main(string[] args)     {        loginout person = new loginout();         display visualizer = new display();         visualizer.display();         person.login();      }       }     } 

and here class i'm trying call (display):

namespace testerproject {   public partial class display : form   {     public display()     {         initializecomponent();     }  

any guys can provide awesome, thanks!

this constructor:

public display()     {         initializecomponent();     }  

so when call this:

display visualizer = new display(); 

it constructor called, don't need try , call again.

seems should be:

namespace testerproject  {  public class program {    static void main(string[] args)     {        loginout person = new loginout();         display visualizer = new display();         person.login();    }      }     } 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -