|
-
Aug 5th, 2002, 05:26 AM
#1
Thread Starter
New Member
Inheriting a TextBox and chaning the apprearance using OnPaint Method
Hi,
I needed to add a border colour to my textboxes and accomplished this by inheriting a textbox and adding the property of "BorderColour". The problem is when I run the program, the text box is displayed with a kind of transparent background, i.e. I can see my code through it (which I am working on in the background). When I type the text appears bold and when I try and delete text it does not appear to delete. However, I found out that it is actually working but not painting correctly. Apparently, I need to do some background painting, and painting on key press event, etc as windows paints a text box directly.
As I do not want to spend a lot of time doing this, has anyone else had this problem and found a solution, and if you could supply me with some code samples, that would be great.
Regards,
Christian
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
|