Windows Aero: What color to paint to make “glass” appear?

后端 未结 3 870
走了就别回头了
走了就别回头了 2020-12-04 18:09

What color must i paint in the client area in order to make glass appear?

i\'ve extended the frame of my form into the client area using:

Dw         


        
3条回答
  •  眼角桃花
    2020-12-04 18:45

    Try setting the TransparencyKey of the form to Color.FromArgb(1,1,1) (or some other suitable value of your choosing) then setting the backcolor of the form (or the part you want to be glass) to that same value.

    That's how I got it to work without it making all of my black text transparent/glass.

    I couldn't ever figure out how to paint the "glowy" text on the glass though. It always had a black rectangle behind it.

提交回复
热议问题