首页 > 代码库 > C# 获取父控件容器的属性

C# 获取父控件容器的属性

 C# 获取父控件容器的属性 

1  BindingNavigator bindingNavigator = (sender as ToolStripButton).GetCurrentParent() as BindingNavigator;2  ((sender as ToolStripButton).GetCurrentParent() as BindingNavigator).BindingSource3                      

 

C# 获取父控件容器的属性