Results 1 to 4 of 4

Thread: WP in VB

  1. #1
    Guest

    Question

    Can anyone give me a clue as to wot controls etc are available that will allow me to emulate a simple word processor in VB. I need to be able to select paragraphs from a DB (VB front end) and paste these into the word processor control, to enable manual editing on the contents.
    Please help.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    There's the Rich Text Box control which provides the same sort of functionality as windows wordpad, If you want better than that the OLE control can get a copy of MS word working very closley with your app, I've never used OLE though so I don't know how easy it is.

  3. #3
    Guest

    There's the Rich Text Box control which provides the same sort of functionality as windows wordpad, If you want better than that the OLE control can get a copy of MS word working very closley with your app, I've never used OLE though so I don't know how easy it is.
    Doesn't give enough formatting etc.
    I have seen wordpad used, and this had all its controls disabled and placed on a form, thats ideal, but ain;t got a clue how to do it.

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I can't say I'm an expert on th RTB control but it honestly does have as much functionality as worpad, you just have to do the front end yourself, say you wan't an underline button, you need a checkbox, set the style to graphical so it loooks like a button, and add this code

    Code:
    
    Private Sub Check1_Click()
    RichTextBox1.SelUnderline = Check1.Value
    End Sub
    
    
    Private Sub RichTextBox1_SelChange()
    Check1.Value = IIf(RichTextBox1.SelUnderline, 1, 0)
    End Sub
    you'll have to do something tostop the checkbox getting the focus, I can't remember how to do that.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width