Windows Vista Forums

.NET2 TextBox & DWM
  1. #1


    Jan Kucera Guest

    .NET2 TextBox & DWM

    Hi.
    First of all, I have extended glass to my client area and I want to put a
    search textbox on it. The biggest problem is, that the text inputed is
    rendered in glass regardless the foreground color I set to the textbox...how
    to avoid this?

    The second question is how can I make it glass semi-transparent like these
    in explorer windows? I believe this can be done by the dwm blur api but I
    haven't managed it to work in C#...

    Thanks for any help.




      My System SpecsSystem Spec

  2. #2


    Stefano Lanzavecchia Guest

    Re: .NET2 TextBox & DWM

    > The second question is how can I make it glass semi-transparent like these
    > in explorer windows? I believe this can be done by the dwm blur api but I
    > haven't managed it to work in C#...


    I don't know if you've seen this already... On the page
    http://www.microsoft.com/uk/msdn/events/nuggets.aspx click "Show All" and
    look for the one called "Glass with C# in Windows Vista". I've watched it a
    while ago but I seem to remember it covered your question... Forgive me if
    it doesn't and I ended up wasting your time...

    -- Stefano


      My System SpecsSystem Spec

  3. #3


    Jan Kucera Guest

    Re: .NET2 TextBox & DWM

    Hi Stefano,
    really thanks for this link. This answers the question how to use blur api
    and what it is for (creating glass area inside a form). It does not explain
    the problem with TextBox (and any other WinForms controls), however,
    explains the second approach to get glass which I believe will not make
    these troubles.

    The semi-transparent textbox, as someone has answered me on forums, is done
    using such background image.

    Thanks, I recommend this video for all starting with glass! ;-)
    Jan

    "Stefano Lanzavecchia" <wildstf@hotmail.com> wrote in message
    news:8FCB6C0D-BDA3-4438-94CE-4F0AE5AC108B@microsoft.com...
    >> The second question is how can I make it glass semi-transparent like
    >> these in explorer windows? I believe this can be done by the dwm blur api
    >> but I haven't managed it to work in C#...

    >
    > I don't know if you've seen this already... On the page
    > http://www.microsoft.com/uk/msdn/events/nuggets.aspx click "Show All" and
    > look for the one called "Glass with C# in Windows Vista". I've watched it
    > a while ago but I seem to remember it covered your question... Forgive me
    > if it doesn't and I ended up wasting your time...
    >
    > -- Stefano



      My System SpecsSystem Spec

.NET2 TextBox & DWM problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
invalidate textbox William Dauchy .NET General 1 05 Aug 2008
split textbox RICK VB Script 1 03 Jun 2008
Masked TextBox Horst Klein Avalon 1 21 Aug 2007
Textbox AutoSize? everydaypanos Avalon 1 05 Apr 2007
autocomplete in a Textbox possible? Sam Jost Avalon 1 29 Sep 2006