none
控件半透明的问题 RRS feed

Respostas

  • 你好!如果是 Winform 实现的话很麻烦,建议用 WPF 做
    知识改变命运,奋斗成就人生!
    sábado, 19 de setembro de 2009 01:03
    Moderador
  • 你好,

    最好是用WPF来做,如果你一定要在WinForm中做,只有自己使用 Graphics.CopyFromScreen来把背景半透明地画出来,以实现这个效果,我以前做过,用定时器不停重绘,效果当然不好,你可以自己考虑如何减少 Graphics.CopyFromScreen的调用,例如只在Form的size改变和位置改变时才调用这个方法,参考下这个例子:
    http://www.codeproject.com/KB/aspnet/How_to_make_VistaForm.aspx
    Best regards,
    Riquel
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    terça-feira, 22 de setembro de 2009 09:32
    Moderador

Todas as Respostas