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:

  1. create new c# smart device project windows mobile 5 using visual studio 2008.
  2. add new class > mylabel.
  3. copy/paste code question.
  4. build solution.
  5. drag mylabel control toolbox form.
  6. change mylabel.text property "hello, world!".
  7. 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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -