c# - Inherited control in Smart Device (Windows CE) solution of Visual Studio 2008 doesn't work properly -
i have design time problem when inherit usercontrol
in smart device (windows ce) solution of visual studio 2008. assume have class this:
public class mylabel:label { //do nothing @ }
when put mylabel
in form, doesn't display text in design time, @ run-time it's working properly. problem visual studio label working correctly if inherit it, doesn't display text in design time.
i have read articles in msdn link creating , migrating smart device custom controls using visual studio 2005 , other websites how design usercontrol
in smart device solution perfect , had lot of code in confused me. i want mylabel
show text in design time, don't want perfect usercontrol
. if have experienced problem please share solution.
it's working me. possible there more logic in mylabel class you've excluded brevity causing problem?
here steps followed:
- create new c# smart device project windows mobile 5 using visual studio 2008.
- add new class > mylabel.
- copy/paste code question.
- build solution.
- drag mylabel control toolbox form.
- change mylabel.text property "hello, world!".
- the text showing "hello, world!" in design mode , @ runtime.
sometimes have add xmta file designer, don't think 1 of cases.
if you're trying own drawing you'll have problems mentioned comment responses question.
Comments
Post a Comment