Salut, me voila avec un nouveau probleme ...
bon jexplique en bref ... g un textbox ou je met ScrollBars sur 3 donc vertical et horizaontal ..
Mais quand je lance le script, je voudrais a laide dun petit menu activer desactiver le "Word Wrap" .. et pour l'instant je fais:
Code:
txtMsg.ScrollBars = 2
Mais il me fais un erreur de compilation, que je veux changer une proprieter en read-only ..
Bon j'ai été m'informer et voila ce que j'ai pu trouver:
Quote:
SYMPTOMS
You receive the following error when you attempt to programmatically set a control property:
Compile Error:
Can't assign to read-only property
CAUSE
You are attempting to programmatically change a read-only property of a control at run-time.
RESOLUTION
If you need to change a read-only property at run-time, create another copy of the control and set the read-only property at design-time. Then, display the copy of the control THAT is appropriate to your task.
|
Mais je vois pas trop la ... quelqu'un pourait m'aider, de comment faire ce word wrap ... si c'est possible sur un autre moyen c'est bon aussi .. mais le changer le scrollbars marche po
Merci