help with custom forms in c#

  • Thread starter Thread starter lewis
  • Start date Start date
L

lewis

hi, im fairly new to c# and am having trouble using the custom form i
have created for my main project. I have followed the guide on custum
objects at intelliprog.com and have made the .dll files and put in my
references. When i use my form class the form shows up in the design
view but i cannot draw the normal toolbox objects onto it, they just
fall onto the bar at the bottom. any ideas?
Thanks,
lewis.
 
The instructions in the article at Intelliprog are for creating designer
support for custom controls, not derived forms. Design support doesn't work
for inherited forms e.g. if you create a class MyForm which is derived from
Form, you won't be able to design any forms derived from MyForm. You can
either use compilation constants to fool the designer into thinking your
class is derived from Form temporarily to do layout and then revert to
MyForm when you build. Or just create your derived form entirely from code,
or copy and paste code from another form layed out as you would like.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top