For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2006 > Rich Text box in an ocx









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Rich Text box in an ocx
Lou

2006-04-27, 6:56 pm

I have a multiline rich text edit box contained with ocx.
When I hit the "Enter" key I would expect the cursor to advance to the next
line but it just sits there.
The control is getting the "13"
Even if I have a full line of text and place the cursor in the middle of the
line and press enter I would expect
the second half of the line to be placed on a new line.

It works fine in a standard .exe????

-Lou


Jeff Johnson

2006-04-27, 6:56 pm


"Lou" <lou.garvin@comcast.net> wrote in message
news:O5qxFVgaGHA.1192@TK2MSFTNGP04.phx.gbl...

>I have a multiline rich text edit box contained with ocx.
> When I hit the "Enter" key I would expect the cursor to advance to the
> next line but it just sits there.
> The control is getting the "13"
> Even if I have a full line of text and place the cursor in the middle of
> the line and press enter I would expect
> the second half of the line to be placed on a new line.


Hmm. I had thought there was a WantEnter property of the UserControl object
or something like that (I don't make many UserControls) but I don't see it
in online help and I don't have VB6 handy at the moment.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com