Communauté Informatique NDFR.net

Communauté Informatique NDFR.net (http://www.ndfr.net/forums/index.php)
-   Programmation (C/C++, Delphi, VB, etc.) (http://www.ndfr.net/forums/forumdisplay.php?f=64)
-   -   VB - ScrollBars (http://www.ndfr.net/forums/showthread.php?t=3364)

Magi-X 14-01-2004 18:35

VB - ScrollBars
 
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

Magi-X 14-01-2004 19:59

Re : VB - ScrollBars
 
C'est bon j'ai trouvé ...

Enfin selon les source que j'ai lu les forum etc, ce ne serait pas possible, mais on ma conseiller daller de textbox vers du richtext .. et la c 10x mieux ..

vala

Kaspof 14-01-2004 20:04

Re : VB - ScrollBars
 
A ton service.
:p ;)


All times are GMT +2. The time now is 20:51.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.