|
-
Apr 25th, 2000, 09:20 PM
#1
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.
-
Apr 25th, 2000, 09:30 PM
#2
Frenzied Member
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.
-
Apr 25th, 2000, 09:43 PM
#3
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.
-
Apr 25th, 2000, 10:42 PM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|