Windows aero glass form text problem

后端 未结 3 1076
我在风中等你
我在风中等你 2021-01-29 01:00

I use windows form with GlassForm(using Microsoft.WindowsAPICodePack.Shell;). my problem when I change form to GlassForm my textbox texts doesnt

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 01:14

    Check this sample out: http://www.danielmoth.com/Blog/Glass-In-C-An-Alternative-Approach.aspx

    I was not studying it any further but putting a TextBox or Button or other components over this Aero glass area worked - the rendered component didn't have the transparency problem. The labels aren't perfect but these can be easily drawn with GDI+ The direct link to the sample project is here: http://www.danielmoth.com/Blog/MothGlass.zip

    It looks like he puts a panel behind the control and setting the TransparencyKey for the panel.

    enter image description here

提交回复
热议问题