Click to See Complete Forum and Search --> : Transparent Textbox?
phillipc100
April 15th, 2002, 05:14 PM
I'm trying to reproduce functionality that I had in VB6. I used to use the Textbox control that came with Forms 2.0 control (fm20.dll) it had an attribute that allowed you to set the background to transparent (fmBackStyleTransparent) I need to this same functionality with a vb.net project I'm working on. In particular I need to be able to display foreground text with a gradient background or a bitmap.
Thanks in advance.
rlrcstr
February 24th, 2003, 04:00 PM
Looks like this post has been here a while...
I'm trying to do the same thing. Textbox, listbox, etc, with a transparent background, so my form bitmap shows through. Have you made any progress on this? Thanks.
Jerry
DSJ
February 25th, 2003, 10:25 AM
I have not tried this, but if you're running on NT/XP/2000 or later you might try the SetLayeredWindowAttributes API.
rlrcstr
February 27th, 2003, 05:03 PM
Thanks for the reply. I'll take a look at it. If that API call is limited to NT/2K/XP, though, I'm not sure I'll be able to incorporate it into a final product. Also, sine the 3D borse of the textbox has white lines in it, if I make the BG transparent, I think it'll make the white border transparent also. I tried using the transparency color property of the form and that's the result I got.
If you think of anything else, I'd truly appreciate the advice.
Jerry
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.