现成的Winform下的Label控件的三种BorderStyle没有突起效果的,None, FixedSingle, Fixed3D。
要做个突起效果的,就继承一个Label来做。里面加上:

突起效果的Label        protected override CreateParams CreateParams
        }

看结果,上面那个就是突起的Label 突起效果的Label
突起效果的Label(代码就是MSDN里面那个创建有边框的UserControl的代码,呵呵,只是给不知道的人们看看,我上午就还不知道着呢)

相关文章:

  • 2021-05-21
  • 2022-01-19
  • 2021-12-19
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-11-06
猜你喜欢
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-03-02
  • 2021-10-11
  • 2021-10-20
相关资源
相似解决方案