检查和设置按钮的Pushed样式
2015-06-10 11:23:55 访问(1326) 赞(0) 踩(0)
// Helper function to check one tool button and uncheck all the rest
private void CheckToolButton(string toolName)
{
foreach (ToolBarButton tbb in toolBar1.Buttons)
if (tbb.Style == ToolBarButtonStyle.ToggleButton)
tbb.Pushed = ((string)tbb.Tag == toolName);
}
标签:
检查和设置按钮的Pushed样式 


上一条:
下一条:
相关评论
发表评论