当表单的对话框结果得到返回时
您好,我有一个对象(来自 sqlserver Managament 对象的 serverconnection ),我需要将此对象发送到其他表单来配置连接选项并连接,以便对象返回,但是当我将此对象发送到 form2 时如何返回它或当我使用 form.ShowDialog() 时这个返回或者如何从这个返回
hi i have on object (serverconnection from sqlserver Managament object ) i need send this object to other form to configure connection option and connect so object return but when i send this object to form2 how return it or when i use form.ShowDialog() when this return or how return from this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在第二种形式中引入一个属性,例如:
这里的属性称为
Configuration
并保存您需要的对象。You can introduce a property into your second form, e.g.:
here the property is called
Configuration
and holds the object you need.