Label text - questoin

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

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.
 
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/d...indowsformscontrolclassparentchangedtopic.asp

Ken
---------------------------
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top