Form inside a form on Windows CE 5.0

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

hello all,

I am trying to add a child form to my main form and am getting an error
at control.add(). it is an argument exception at
Forms.Controls._SetParent.

any help would be great... working example wold be awsome.
 
Hello Jay,

Can you please provide a little more source code and/or the exception dump?

In general my experience shows that the CF is extremely flakey about setting
certain form properties - certainly Parent - outside the form class constructor
or OnLoad event.

Regards,
Tomer Gabel (http://www.tomergabel.com)
Monfort Software Engineering Ltd. (http://www.monfort.co.il)
 
Jay,

That was something you could do with CF1, but not with CF2. Look at
UserControl.

Graham
 
Back
Top