RichTextBox.SelIndent doesn't work 
Author Message
 RichTextBox.SelIndent doesn't work

I can't get RichTextBox.SelIndent to work.  I'm using VB5, SP3, and the
following code sample:

    ScaleMode = vbInches
    ActiveTextBox.SelIndent = 5

When executed, this code has no effect.  What am I doing wrong?



Mon, 08 Oct 2001 03:00:00 GMT  
 RichTextBox.SelIndent doesn't work
First, your code tries to set the left indent to 5 inches...maybe you mean

Second, if you do mean to set the left indent to 0.5 inches, do you store
the value (0.5) in a variable, if so, is the variable a real number or
integer must be a real number (single or double) or it will
get rounded to "0" and you will not see any indent!

Mark E Alsop

Tue, 09 Oct 2001 03:00:00 GMT  
 RichTextBox.SelIndent doesn't work

> First, your code tries to set the left indent to 5 inches...maybe you mean
> 0.5.

No, I mean 5 inches!  But doing so doesn't have any effect.  It appears
that, in site of the documentation, the RichTextBox indent properties
always use twips.  

Gee, I only spent 4 hours tracking this one down.  Has anyone accounted
for the cost of all the time in the world that people have spent trying
to find bugs because of errors in the Microsoft documentation?  



Wed, 10 Oct 2001 03:00:00 GMT  
 RichTextBox.SelIndent doesn't work

On NT4/SP3, VB5/SP3...

If the VB RichTextBox is dropped onto a form that is scaled in inches, then
the RichTextBox.SelIndent is set to 5 then the left indent is at 5
inches...I just tested this and it works just fine. The internal scale mode
of the RichTextBox takes its scale mode from its container's ScaleMode. If
the container is a Frame it will always be in twips because that is the only
internal scale mode a Frame allows but on a Form or PictureBox the scale
mode should be that of the container object.

Perhaps there is some code you are overlooking that is changing the
RichTextBox settings after you reset it.

Mark E Alsop

Fri, 12 Oct 2001 03:00:00 GMT  
 [ 4 post ] 

 Relevant Pages 

1. Work Around doesn't work for RichTextBox

2. right alignment in richtextbox doesn't work

3. RichTextBox Workaround doesn't work.

4. fRefreshLinks Doesn't work if path doesn't exist

5. Windows Service Calling VB6 dll doesn't work but works with VB6

6. IE3 doesn't work after working with webbrowser control

7. Why LoadPicture() works on local pathes and doesn't work on the URLS

8. Passing a Parameter its works and it doesn't work

9. Works/Doesn't Work

10. ActiveX-Exe: .Value=True doesn't work while direct click on button works

11. 'Next Comment' doesn't work

12. RichTextBox doesn't fill entire width?


Powered by phpBB® Forum Software