Dynamic Control PRoperty Setting

Eduardo Lorenzo

Well-known member
Joined
Jun 27, 2006
Messages
86
I have created a set of dynamic/on-the-fly controls including labels.

my problem is I cant seem to be able to set the labels 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!

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


Write your reply...
Back
Top