Label text - questoin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Agnes

    #1

    Label text - questoin

    I create my own usercontrol which is "LABEL ", i create a property to store
    its original text.
    As form load, I want every label store its "original label" into that
    property.
    in that usercontrol
    I try to set it in initlayout() method, It seems doesn't work.
    Does anyone know how to do ?? thanks a lot.


  • Ken Tucker [MVP]

    #2
    Re: Label text - questoin

    Hi,

    I would store the orginal text in the parent changed event.
    That event is fired when the control is added to the form at runtime.

    http://msdn.microsoft.com/library/de...angedtopic.asp

    Ken
    ---------------------------
    "Agnes" <agnes@dynamict ech.com.hk> wrote in message
    news:eVl4eBymFH A.3304@tk2msftn gp13.phx.gbl...
    I create my own usercontrol which is "LABEL ", i create a property to store
    its original text.
    As form load, I want every label store its "original label" into that
    property.
    in that usercontrol
    I try to set it in initlayout() method, It seems doesn't work.
    Does anyone know how to do ?? thanks a lot.



    Comment

    Working...