Having trouble with C# form passing -


i'm trying c#, after doing ton of java. wanted pass gui form class, run trouble trying access containers etc. there.

this autogenerated form class:

namespace wecker {     public partial class weckerdesign : form     {         public weckerdesign()         {             initializecomponent();             new weckerrun(this);         }     } } 

and recieving class:

namespace wecker {     class weckerrun     {         weckerdesign wdesign = new weckerdesign();          public weckerrun(weckerdesign wdesign)         {              this.wdesign = wdesign;             new displayclock(wdesign);         }     } } 

however, when trying access container "clockfield" recieving class, can't find it. however, in passing class, can there this.clockpanel. ... , on.

the recieving class won't suggest me that. in java, pass down class whole "this" in order have exact same reference in other class, can treat if in original class got object reference from.

how do in c#?

how "clockpanel" field or property defined? need public accessible outside class.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -