Viewing Usercontrol Property Changes at Design Time

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Viewing Usercontrol Property Changes at Design Time

    I have a usercontrol composed of a label and textbox. I've created a
    custome property, LabelText, that I can assign at run time. What I'd
    like to see is if I place a value in LabelText in the Property Window
    at design time, to see the usercontrol update itself with this value.

    How is this accomplished?


    Any feedback is appreciated.

    jdp Guest

  2. Similar Questions and Discussions

    1. UserControl property as dropdown at design time?
      Hi I'm creating an ASP.NET UserControl that contains a DropDownList control. I'd like to be able to set the DataSourceID property of this...
    2. using the Items property in the design time property window
      I hope this is the proper forum. I posted this problem in the wrong one previously. I have a custom server control that I am building. Implementing...
    3. Rendering design-time content on a web UserControl
      I created a web user control and would like to add the ability for it to contain design-time rendering capabilities. So that, during development,...
    4. design time property persistence
      I have a control that inherits from WebControl. In it, I have a property of a collection type. Basically it's similar to how DataGrid works in...
    5. Viewing custom web control at design time
      Hello, I've created a custom web control (composite) and added to my toolbox. I dragged the control onto a new web form and I see the small green...
  3. #2

    Default Viewing Usercontrol Property Changes at Design Time

    I have a usercontrol composed of a label and textbox. I've created a
    custom property, LabelText, that I can assign at run time. What I'd
    like to see is if I place a value in LabelText in the Property Window
    at design time, to see the usercontrol update itself with this value.

    How is this accomplished?

    Any feedback is appreciated.

    jdp Guest

  4. #3

    Default RE: Viewing Usercontrol Property Changes at Design Time

    Well, for Windows Forms components, your set accessor on the public property
    generally includes a call to Invalidate() .. have you looked for something
    similar for the web control?

    I'm sorry I can't be more specific than this, I wrestle more with custom
    designers than property editors atm :)

    /Micke

    "jdp" wrote:
    > I have a usercontrol composed of a label and textbox. I've created a
    > custom property, LabelText, that I can assign at run time. What I'd
    > like to see is if I place a value in LabelText in the Property Window
    > at design time, to see the usercontrol update itself with this value.
    >
    > How is this accomplished?
    >
    > Any feedback is appreciated.
    >
    >
    Micke Andersson Guest

  5. #4

    Default Re: Viewing Usercontrol Property Changes at Design Time

    Thanks for the reply.

    To be honest, I'm not quite sure I understand what you're referring to.
    If you explain more about the Invalidate() or point me to a site that
    explains things a little more, I'd appreciate it.

    Thanks again.


    Micke Andersson wrote:
    > Well, for Windows Forms components, your set accessor on the public property
    > generally includes a call to Invalidate() .. have you looked for something
    > similar for the web control?
    >
    > I'm sorry I can't be more specific than this, I wrestle more with custom
    > designers than property editors atm :)
    >
    > /Micke
    jdp Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139