View Poll Results: Do you want an open source Web Browser Control in Visual Basic?
- Voters
- 5. You may not vote on this poll
-
Yes, it would be great
-
No, i like Microsoft's
-
What is Web Control
-
I am not sure
-
Feb 1st, 2004, 06:28 AM
#1
Thread Starter
Hyperactive Member
How to copy Rich Text Box Text exactly in Picture Box? Help
Hello, please help me , I am working on a Custom Web Control and I need some help.
How to print the exact text from a rich text box to a picture box?
I have tried it and i had some problems.
1) There are no paragraphs(as rich text box has)
2) There is no left , center , right formatting (as rich text box has)
If anyone knows something, please send some code and help me with it.
Rich Text Box's Name = Page
Picture Box's Name = Picture1
Kostas Botonakis, Greece
-
Feb 1st, 2004, 08:26 AM
#2
Not NoteMe
Not sure if this is what you want, but you could use the BitBlt API to copy an image of the text onto the picturebox.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Feb 2nd, 2004, 03:28 AM
#3
Question: Would this be what you mean SLH?:
VB Code:
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Dim rtbdc As Long
rtbdc = GetDC(RichTextBox1.hwnd)
BitBlt Picture1.hDC, 0, 0, RichTextBox1.Width, RichTextBox1.Height, rtbdc, 0, 0, vbSrcCopy
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Feb 2nd, 2004, 08:30 AM
#4
Not NoteMe
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
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
|