C#按钮失去焦点


                 private void SetButton(Button button)
                {                        
                        MethodInfo methodinfo = button.GetType().GetMethod( "SetStyle",                         BindingFlags.NonPublic 
| BindingFlags.Instance
| BindingFlags.InvokeMethod);


                        methodinfo.Invoke(button, BindingFlags.NonPublic
| BindingFlags.Instance
| BindingFlags.InvokeMethod, null,
                                 new object[] { ControlStyles.Selectable, false },    
                                        Application.CurrentCulture);                
                }

你可能感兴趣的:(C#,按钮,失去焦点)