Hello guyz!
I need transparent textbox in vb.net. I did in vb6 by using the fm20.dll.
By adding referneces that dll i got the control. After applying the transparency, stil its in opaque mode oly
Please help me to figure it out
Thanks....
Printable View
Hello guyz!
I need transparent textbox in vb.net. I did in vb6 by using the fm20.dll.
By adding referneces that dll i got the control. After applying the transparency, stil its in opaque mode oly
Please help me to figure it out
Thanks....
I found this, hope it helps.
http://www.codeproject.com/KB/edit/a...ndtextbox.aspx
Thanks for quick reply let me check and tel u...
The code not that much easy i am getting error as "To prevent possible data loss before loading the designer, the following errors must be resolved: "
In vb6 i done it very easily![button,image,textbox,radiobutton]. Stuck with vb.net
Any help can be appreciated!
So what are the errors?Quote:
Originally Posted by kpmsivachand
Daily WPF Plug: In WPF you can make any control as transparent as you want as they all have an Opacity property :)
Anyway, why do you want a transparent textbox and what exactly do you mean? Do you mean you want just the outline of the textbox to be visible or do you mean you want the entire thing (minus the text you type into it) to be invisible?
If you mean that you want an invisible textbox, it's as easy as going into the properties of the textbox, and where it says Visible, you just change it from True to False.
@ryanV.hockey. He said a transparent textbox, not an invisible one:rolleyes:
Apart from WPF, a relatively easy way to get a transparent textbox is to dock it onto a separate, "floating" form, and make that form partly opaque (e.g Opacity=0.55). Set the floating form's FormBorderStyle to none, and with suitable careful sizing and positioning you will have a partly opaque textbox appearing when you Show the form. I can give a code example if anyone wants it.
You can also make a textbox with a completely transparent background by setting the floating form's BackColor and TransparencyKey, as well as the text box's background colour, to the same value. Maybe that's less useful because the letters can be hard to read against a varied background.
all the best, BB
I added background image. So the text and button is transparent then it looks nice thats y i need it.
Ya now i am trying with wPF