[VB6] - Hide textbox(or other control) backcolor
can i hide the textbox(or picturebox) backcolor?
(it's a question that normaly i found the code for a form)
Re: [VB6] - Hide textbox(or other control) backcolor
May be by setting the control's transparency key to the color, but I believe it only works on forms. Problem is that Windows doesn't use the Alpha component of colors when drawing...
It can be done if you add the picturebox to a form, with as backcolor an unused color (like pink) and give the form a transparency key of that color. Then you make sure this form stays on top of your main form (as if it is a control) by handling the position/sizechanged events of the main form.
The best solution is a custom control, but for a textbox this can take a while.
If you want multiple controls to have this, simply make one top-layer form which contains the controls (and see-through spots) with a background form having the background to display. (like an image of some sort)
No API is involved here though. :)
Re: [VB6] - Hide textbox(or other control) backcolor
Quote:
Originally Posted by
bergerkiller
May be by setting the control's transparency key to the color, but I believe it only works on forms. Problem is that Windows doesn't use the Alpha component of colors when drawing...
It can be done if you add the picturebox to a form, with as backcolor an unused color (like pink) and give the form a transparency key of that color. Then you make sure this form stays on top of your main form (as if it is a control) by handling the position/sizechanged events of the main form.
The best solution is a custom control, but for a textbox this can take a while.
If you want multiple controls to have this, simply make one top-layer form which contains the controls (and see-through spots) with a background form having the background to display. (like an image of some sort)
No API is involved here though. :)
;)
and there is any transparent textbox(activex control) 100% free?(if you know)
Re: [VB6] - Hide textbox(or other control) backcolor
You can try to search for it. Here is one for example:
http://www.codeproject.com/KB/edit/a...ndtextbox.aspx
Re: [VB6] - Hide textbox(or other control) backcolor
Quote:
Originally Posted by
bergerkiller
these is for .NET not for VB6;)
Re: [VB6] - Hide textbox(or other control) backcolor
Quote:
Originally Posted by
joaquim
can i hide the textbox(or picturebox) backcolor?
(it's a question that normaly i found the code for a form)
Though this is not a truly transparent picturebox, but it may be something to play with.
Re: [VB6] - Hide textbox(or other control) backcolor
Quote:
Originally Posted by
LaVolpe
hi LaVolpe. how are you?
it's very cool... but if i want a textbox backcolor transparent?
you speak about UC, but i wanted a controls.. sorry