Link to home
Start Free TrialLog in
Avatar of staffiidba
staffiidba

asked on

Read only properties !!! ???

Trying to use a Text Box control and create a wrap around it. I need to set the alignment property. BUT. On the initialize of the UserControl, if I set the alignment property in the code, it complains when I want to put the control on to a form with - Read Only property can not be set. ???
When using the ActiveX control wizard, it does not seem to map the property to the constituent control.
Is this a bug ? Or is there another way of doing this.
(I dont want to have to create 2 text boxes on the UserControl with each of them being aligned in a different way and when the user selects the Alignment property I would swap it to the text control that has been aligned in that fashion...)
Avatar of Eyal
Eyal
Flag of Israel image

You don't have any other choice. VB can't change this property at run time. the only way i know is to put two controls on the usercontol.

ASKER CERTIFIED SOLUTION
Avatar of fguerreiro_inix
fguerreiro_inix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of staffiidba
staffiidba

ASKER

Thanks.
looks like a prob with VB ?
Not a problem. An inherant feature.