检查和设置按钮的Pushed样式

2015-06-10 11:23:55  访问(1327) 赞(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样式 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)
 
  ┈全部┈  
 
(显示默认分类)