i try to combine GUI with class - no success
- by Gold
hi
i made a class that make registration to my WinCE program.
how i can from the class draw pannel + textbox, and catch the enter press
from the textbox ?
i try to do this:
TextBox tb=new TextBox();
tb.Location=new Point(10,10);
Panel pn=new Panel();
pn.Dock=DockStyle.Fill;
pn.Controls.Add(tb);
this.Controls.Add(pn);
but i got error in: this.Controls.Add(pn);
is there any simple sample code for this ?
thank's in advance