Results 1 to 9 of 9

Thread: transparent textbox in vb.net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    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....

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: transparent textbox in vb.net


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Re: transparent textbox in vb.net

    Thanks for quick reply let me check and tel u...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    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!

  5. #5
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: transparent textbox in vb.net

    Quote Originally Posted by kpmsivachand
    "To prevent possible data loss before loading the designer, the following errors must be resolved:"
    So what are the errors?

  6. #6
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    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?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  7. #7
    Junior Member
    Join Date
    May 2009
    Location
    Oakville, Ontario
    Posts
    23

    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.

  8. #8
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    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.

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    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
  •  



Click Here to Expand Forum to Full Width