|
-
Sep 2nd, 2009, 10:42 AM
#1
Thread Starter
Addicted Member
transparent textbox in vb.net
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....
-
Sep 2nd, 2009, 10:47 AM
#2
Re: transparent textbox in vb.net
-
Sep 2nd, 2009, 10:52 AM
#3
Thread Starter
Addicted Member
Re: transparent textbox in vb.net
Thanks for quick reply let me check and tel u...
-
Sep 2nd, 2009, 11:04 AM
#4
Thread Starter
Addicted Member
Re: transparent textbox in vb.net
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!
-
Sep 2nd, 2009, 12:16 PM
#5
Re: transparent textbox in vb.net
 Originally Posted by kpmsivachand
"To prevent possible data loss before loading the designer, the following errors must be resolved:"
So what are the errors?
-
Sep 2nd, 2009, 12:54 PM
#6
Re: transparent textbox in vb.net
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?
-
Sep 2nd, 2009, 01:39 PM
#7
Junior Member
Re: transparent textbox in vb.net
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.
Remember, If your problem has been resolved, mark your thread as resolved! Also, if someone has helped you, add to their Reputation.
-
Sep 2nd, 2009, 01:59 PM
#8
Re: transparent textbox in vb.net
@ryanV.hockey. He said a transparent textbox, not an invisible one
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
Last edited by boops boops; Sep 2nd, 2009 at 02:06 PM.
-
Sep 3rd, 2009, 04:30 AM
#9
Thread Starter
Addicted Member
Re: transparent textbox in vb.net
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
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
|