Re: Lines in a text box
From: Douglas Marquardt (no_spam_at_dummy.com)
Date: 04/21/04
- Next message: *** Grier: "Re: MSCOMM and VB6"
- Previous message: Karl E. Peterson: "Re: MULTIPOST: Lines in a text box"
- In reply to: Dale Levesque: "Re: Lines in a text box"
- Next in thread: Karl E. Peterson: "MULTIPOST: Lines in a text box"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 14:27:59 -0600
Hi Dale:
I misunderstood what you were asking -- I thought you meant
take the text from Word and put it into VB6; I realize now that
you meant the other way around.
As Karl mentioned, you can use the SendMessage API
and EM_GETLINECOUNT; however, that does not take into
account the differences between the two controls (word and vb6)
wrt font characteristics and the width of the controls.
Doug.
"Dale Levesque" <dale at dynamicwindows.com> wrote in message news:u8q2Em9JEHA.1040@TK2MSFTNGP10.phx.gbl...
> How do I insert a rich text box into a word document and why wouldn't i have
> to worry.
>
> Whats happening now is that all the text goes into text box but there islot
> that isn't visible. If you croll the text box it's there but of course it
> doesn't print when you print the document.
>
> Dale
>
> "Douglas Marquardt" <no_spam@dummy.com> wrote in message
> news:%232dcMG9JEHA.3276@TK2MSFTNGP12.phx.gbl...
> > Hi Dale:
> >
> > If you use a RichTextbox instead, then you won't have to
> > worry about the text fitting.
> >
> > Doug.
> >
> > "Dale Levesque" <dale at dynamicwindows.com> wrote in message
> news:udLWoj8JEHA.2380@TK2MSFTNGP09.phx.gbl...
> > > Is it possible to determine how many lines are in a multiline textbox
> > > control? (VB6)
> > >
> > > Dale
> > >
> > > What I'm actually trying to do is to fill the contents of a text box in
> an
> > > MS word document with the contents of the contents of a textbox on a VB6
> > > form. I have to have some way to determine whether they will fit.
> > >
> > >
> >
> >
>
>
- Next message: *** Grier: "Re: MSCOMM and VB6"
- Previous message: Karl E. Peterson: "Re: MULTIPOST: Lines in a text box"
- In reply to: Dale Levesque: "Re: Lines in a text box"
- Next in thread: Karl E. Peterson: "MULTIPOST: Lines in a text box"
- Messages sorted by: [ date ] [ thread ]