以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  新版的按钮风格用代码怎么搞?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=45832)

--  作者:晕了快扶我
--  发布时间:2014/2/11 20:59:00
--  新版的按钮风格用代码怎么搞?
e.sender.FlatStyle = FlatStyle.Standard
office2007bule的风格咋弄?

--  作者:有点甜
--  发布时间:2014/2/11 21:57:00
--  
 原来新版还有这个功能了。你试试用这个变量,或者直接用 0、1、2、3、4、5去试

VisualStyleEnum.Office2007Blue

[此贴子已经被作者于2014-2-11 21:57:22编辑过]

--  作者:晕了快扶我
--  发布时间:2014/2/11 22:19:00
--  
e.sender.FlatStyle = VisualStyleEnum.Office2007Blue
这个无效。。。

--  作者:xiaoohoo
--  发布时间:2014/2/11 22:27:00
--  
这样:
e.Form.Controls("Button1").VisualStyle=2

 值可以为0-7,对应8种按钮风格。

--  作者:晕了快扶我
--  发布时间:2014/2/11 22:39:00
--  
谢谢