A
Agnes
I create my own usercontrol (textbox), I new a property 'Type'
I will set this property during design mode, I will set 'I' OR 'C', i stands
for integer, c stands for character,
Now, In that usercontrol, I want to detect that property , if the propety
set to "I", the textalign will set to 'right'
iF ME.TYPE ='I"
Me.textAlign = HorizontalAlignment.Right
endif
if Me.type = "C"
Me.textAlign = HorizontalAlignment.left
endif
I put the above code in InitLayout(), but it seems didn't work . Where
Should I place these code ???
Thanks a lot
I will set this property during design mode, I will set 'I' OR 'C', i stands
for integer, c stands for character,
Now, In that usercontrol, I want to detect that property , if the propety
set to "I", the textalign will set to 'right'
iF ME.TYPE ='I"
Me.textAlign = HorizontalAlignment.Right
endif
if Me.type = "C"
Me.textAlign = HorizontalAlignment.left
endif
I put the above code in InitLayout(), but it seems didn't work . Where
Should I place these code ???
Thanks a lot