设置按钮的Enabled
2015-06-10 11:24:14 访问(1349) 赞(0) 踩(0)
// Helper function to enable/disable all the tool buttons on the tool bar
private void EnableToolButtons(bool enable)
{
foreach (ToolBarButton tbb in toolBar1.Buttons)
if (tbb.Style == ToolBarButtonStyle.ToggleButton)
tbb.Enabled = enable;
}
标签:
设置按钮的Enabled 


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