Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums

Go Back   Vista Forums > Vista technology newsgroups > Aero

.NET2 TextBox & DWM

Reply
 
Thread Tools Display Modes
Old 12-04-2006   #1
Jan Kucera
Guest
 
Posts: n/a

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

  Reply With Quote

Old 12-05-2006   #2
Stefano Lanzavecchia
Guest
 
Posts: n/a

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

  Reply With Quote
Old 12-10-2006   #3
Jan Kucera
Guest
 
Posts: n/a

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


  Reply With Quote
 
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox value to filter databound ListBox items? Olav Avalon 2 09-23-2006 12:55 PM
How do I change the selection color of a TextBox control? =?Utf-8?B?WXV2YWw=?= Avalon 0 09-12-2006 08:09 PM
Send input to TextBox programatically Marcus Avalon 1 06-05-2006 07:14 PM
Weird Undo error when typing on a textbox Keith Patrick Avalon 0 02-14-2006 05:19 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48