winforms inheritance

hi,
I have read about possibility of inheriting winforms with the compactframework 2.0, but I have tried it and I have not found the way of doing it.
Is it possible ?
Thanks
Antonio de Rojas
[206 byte] By [AntoniodeRojas] at [2008-2-8]
# 1
Surely it is. Just try this:

public partial class frmMain : BaseForm

Best regards,
Markus

MarkusFritz at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
What have you tried?

1. Create a new SDP
2. To the default form1 add a button
3. Add a new form (form2)
4. Delete the mainmenu from form2
5. Go to the code and change Form2 so it does not inherit from Form and instead inherits from Form1
6. Rebuild the solution
7. Open form2 in the designer and observe how it shows button1

The above was successful for me (in C#) but I have not done any further experiments. If you have other specific issues feel free to post back...

Cheers
Daniel

DanielMoth at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...