Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #83
| From | Jason Bodine <jbodine1974@gmail.com> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Adding the Picture Property to a RichTextBox control (VB6) |
| Date | 2011-04-19 02:02 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <be977bb4-7fa1-4ae8-9751-c1d649078ef5@2g2000vbl.googlegroups.com> (permalink) |
Hi All, Does anyone know how to add the Picture Property to a VB6 RichTextBox control? Before you point me to the code for making the RichTextBox transparent, lol, I've done that...and it isn't working out according to plan. See, there are some problems: 1. Making the richtextbox transparent with either WS_EX_TRANSPARENT or WS_EX_LAYERED results in the text typed into the RichTextBox being written to the picturebox beneath it as well. BUT... when the user hits the BackSpace key, it deletes the text from the richtextbox, but not the picturebox, and if the user then types more text, the result is a jumbled mess of letters. 2. My app allows the user change the background color of a richtextbox (or, in the case of a transparent one, the picturebox behind it). VB6 will neither allow me to change the value of the Constant expression nor accept Picture1.BackColor as a valid argument. I need to be able to change the color value of WS_EX_TRANSPARENT to match the background color of the picturebox because otherwise, if the initial backcolor matches the WS_EX_TRANSPARENT color there is no problem, but if the user then changes the background color of the picturebox, the result is not only the aforementioned jumbled mess of letters, but also a "caret" mark of the WS_EX_TRANSPARENT color after each and every single typed character. Which brings me back to my original question, lol: What code do I need to add to the parent form's General Declarations, etc, to add the Picture property to the richtextbox control and cause it to *properly* handle all the relevant Methods and Events associated with it? (I am assuming, btw, that I will also need to add an Image property as well, as PaintPicture needs it...) LOL, I'm sure it's a crapload of code, but at this point it's easier to put all that in manually rather than rely on the transparent richtextbox, so that I can just use LoadPicture to put a background image right in! Thanks, Jason
Back to comp.lang.basic.visual.misc | Previous | Next — Next in thread | Find similar
Adding the Picture Property to a RichTextBox control (VB6) Jason Bodine <jbodine1974@gmail.com> - 2011-04-19 02:02 -0700
Re: Adding the Picture Property to a RichTextBox control (VB6) Jason Bodine <jbodine1974@gmail.com> - 2011-04-23 05:04 -0700
Re: Adding the Picture Property to a RichTextBox control (VB6) "Mayayana" <mayayana@invalid.nospam> - 2011-04-23 09:51 -0400
Re: Adding the Picture Property to a RichTextBox control (VB6) Jason Bodine <jbodine1974@gmail.com> - 2011-04-23 11:52 -0700
Re: Adding the Picture Property to a RichTextBox control (VB6) "Mayayana" <mayayana@invalid.nospam> - 2011-04-23 15:56 -0400
Re: Adding the Picture Property to a RichTextBox control (VB6) "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-04-23 21:41 +0100
Re: Adding the Picture Property to a RichTextBox control (VB6) "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-04-23 16:43 +0100
csiph-web