Dynamic Control PRoperty Setting

Eduardo Lorenzo

Regular
Joined
Jun 27, 2006
Messages
87
I have created a set of dynamic/on-the-fly controls including labels.

my problem is I can't seem to be able to set the label's font size! :mad:

I have tried Font.Size, Font.Name = "Verdana, X-Small", casting a string to unit, none worked.

Right now i am looking at the logic because i create the controls before the page_init and then set the values on postback.

please help me.
 
this did the trick!

Visual Basic:
 Dim lbl As New Label
                        Dim sukat As FontUnit
                        lbl.Font.Size = sukat.XSmall
this is for all who have tried
 
Back
Top