|
-
Jul 20th, 2006, 07:48 AM
#1
[RESOLVED] TextBox Wrap
How can i Wrap a TextBox? When i try to do it by changing a ScroolBars value, error occures, because it is a read-only propertie. I know it's an easy one, but i just can't get it...
-
Jul 20th, 2006, 07:50 AM
#2
Frenzied Member
Re: TextBox Wrap
multiline = true I believe.
-
Jul 20th, 2006, 07:50 AM
#3
Re: TextBox Wrap
Set the MultiLine property to True
-
Jul 20th, 2006, 07:52 AM
#4
Re: TextBox Wrap
I think you don't understand me. Multiline is also a read-only property. Check Windows Notepad, Format -> Word Wrap. That's what i would like to do.
-
Jul 20th, 2006, 07:54 AM
#5
Frenzied Member
Re: TextBox Wrap
Still not making yourself clear...
-
Jul 20th, 2006, 07:57 AM
#6
Re: TextBox Wrap
Well... i know how Multiline property is working. It gives you a chance to use more than one line But... i would like to have a TextBox, which can be changed in the middle of running a program. From Multiline = True to Multiline = False and reverse. You can see that it's possible, but VB says that it's a read-only property. I would just like to know if it's doable, and if it is, how.
-
Jul 20th, 2006, 07:58 AM
#7
Re: TextBox Wrap
You need to set the multiline property of the textbox at design time, and then you will be able to add scrollbars. setting it at runtime will cause an error (which is what you got)
-
Jul 20th, 2006, 08:02 AM
#8
Re: TextBox Wrap
See i'm not making myself clear... I know how Multiline and ScrollBars properties are working. I would just like to be able to set those properties in the runtime. Is it doable?
-
Jul 20th, 2006, 08:06 AM
#9
Re: TextBox Wrap
 Originally Posted by gavio
See i'm not making myself clear... I know how Multiline and ScrollBars properties are working. I would just like to be able to set those properties in the runtime. Is it doable?
No. That setting can only be set in design for a standard VB textbox.
You can toggle word wrap in a Richtextbox using the SendMessage API however.
-
Jul 20th, 2006, 08:10 AM
#10
Re: TextBox Wrap
Yes... but in my case, i can't use RichTextBox. I thought there's some API which allows this in ordinary TextBox. However, thanx.
-
Jul 20th, 2006, 08:21 AM
#11
Re: [RESOLVED] TextBox Wrap
just use two textboxes - problem solved!
-
Apr 29th, 2016, 02:04 AM
#12
New Member
Re: [RESOLVED] TextBox Wrap
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|