Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Transparent RichTextBox or RichTextBox Background Image Posted by Emod on 1 Feb 2005 at 5:38 AM
Hi! does anybody know how to make a RichTextBox Transparent? so that a picture behind it will be visible?? I know one way with WS_EX_TRANSPARENT... but if you do it that way the scrollbars are screwed up... or how to paint a picture in a RichTextBox?? tried it also with API > first got the HDC and the used BitBlt but didn't work... isn't there a way to do this???
Report
Re: Transparent RichTextBox or RichTextBox Background Image Posted by casgto on 10 Feb 2007 at 10:21 PM
This message was edited by casgto at 2007-2-10 22:23:44

This message was edited by casgto at 2007-2-10 22:22:27

: Hi! does anybody know how to make a RichTextBox Transparent? so that a picture behind it will be visible?? I know one way with WS_EX_TRANSPARENT... but if you do it that way the scrollbars are screwed up... or how to paint a picture in a RichTextBox?? tried it also with API > first got the HDC and the used BitBlt but didn't work... isn't there a way to do this???
:

Private Const WS_EX_LAYERED = &H80000
Private Const GWL_EXSTYLE = -20
Private Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "User32" (ByVal hWnd As Long, ByVal color As Long, ByVal X As Byte, ByVal alpha As Long) As Boolean
SetWindowLong frmTestRichEdit.hWnd, GWL_EXSTYLE, WS_EX_LAYERED
SetLayeredWindowAttributes frmTestRichEdit.hWnd, &HC0E0FF, 255, 1





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.