我创建了DesignSurface。但是,如果我更改控件的属性,例如,Size属性。
我拉伸了Form,因此PropertyGrid的Size属性也应该及时更改。但是我很长一段时间都在关注谷歌和MSDN,并且没有发现如何做到这一点。你能告诉我应该怎么做吗?谢谢
部分代码
您可以看到此按钮的LOCATION属性不正确。这是因为该物业尚未及时更新。
我的问题是如何及时将控件属性更新为propertyGrid。 谢谢
答案 0 :(得分:0)
IComponentChangeService ccs =(IComponentChangeService)host.GetService(typeof(IComponentChangeService));
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
cmd_result = APPLICATION.execute(args)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/application.py", line 203, in execute
result = expanded_arg.func(params)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 278, in __call__
return self.handler(*args, **kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 473, in _execute_command
reraise(*sys.exc_info())
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 450, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 150, in k8s_browse
_k8s_browse_internal(name, acs_info, disable_browser, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 160, in _k8s_browse_internal
_k8s_get_credentials_internal(name, acs_info, browse_path, ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py", line 711, in _k8s_get_credentials_internal
'.kube/config', path_candidate, key_filename=ssh_key_file)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/azure/cli/command_modules/acs/acs_client.py", line 49, in SecureCopy
ssh.connect(host, username=user, pkey=pkey)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 381, in connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
File "/Users/sikkar/lib/azure-cli/lib/python2.7/site-packages/paramiko/client.py", line 622, in _auth
raise saved_exception
/ *此方法处理OnComponentChanged事件以显示通知。 * / private void OnComponentChanged(object sender,ComponentChangedEventArgs ce) { if(ce.Component!= null&&((IComponent)ce.Component).Site!= null&& ce.Member!= null) Debug.WriteLine("" + ce.Member.Name +"成员" +((IComponent)ce.Component).Site.Name +"组件已被更改。");
ccs.ComponentChanged += new ComponentChangedEventHandler(OnComponentChanged);