Communauté Informatique NDFR.net : VB - ScrollBars - Programmation (C/C++, Delphi, VB, etc.)
Reply
VB - ScrollBars
Thread Tools Display Modes
  #1  
Old 14-01-2004, 18:35
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 40
Posts: 816
Send a message via MSN to Magi-X
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
Reply With Quote
  #2  
Old 14-01-2004, 19:59
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 40
Posts: 816
Send a message via MSN to Magi-X
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
Reply With Quote
  #3  
Old 14-01-2004, 20:04
Kaspof's Avatar
Kaspof Kaspof is offline
Lover invétéré
 
Join Date: 18-12-2002
Location: Dublin
Posts: 1,668
Re : VB - ScrollBars

A ton service.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Codes vB Benjy Discussions sur le site et/ou le forum 30 25-03-2006 06:57
File Handling VB Magi-X Programmation (C/C++, Delphi, VB, etc.) 5 02-01-2004 18:01
vB Code enzo19 Discussions sur le site et/ou le forum 7 20-10-2002 23:56

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

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