调用FORM问题!急求!请教各位大侠了!

ygxlf ygxlf 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
在FORM表单的Button6单击事件中填入以下代码
Dim hdmc As String = Trim(Me.Button6.Tag.ToString)
Dim formName As New Form
formName.Show(hdmc)



运行时提示:
无法将类型为“System.String”的对象强制转换为类型“System.Windows.Forms.IWin32Window”。
请各位大侠给出正确的调用方法!
...全文

相关推荐

Form1调用Form2 ,From2回传值或调用Form1内的方法。

通过委托实现,初学C#的可参考,借以理解event、EventHandler等; 高级人士勿笑

infinat

Form2调用Form1控件的解决方案

Q:Form1上一个Button点击后弹出新窗口Form2,在新窗口点击Button如何控制Form1中的某些控件? A:用委托。一个简单可行的办法用ref.下面是个小例子: 在Form1的button1_Click里写: private void button1_Click(object sender, EventArgs e) { this.button1.Enabled = false; Form2 f2 = new Form2(ref button1); f2.Show(); } Form2里这样写: public Button button; public Form2(ref Button button) { this.button = button; InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.button.Enabled = true; }

feiyesunny

C#创建windows服务+Form+Web调用服务

C#创建windows服务+Form+Web调用服务,注释很全。

微信公众号

解决antd的Form组件setFieldsValue的警告问题

记住:setFieldsValue的字段要对应得上 解决antd的Form组件setFieldsValue的警告 使用antd的Form组件setFieldsValue可能会出现You cannot set a form field before rendering a field associated with the value.警告,字面意义去看是说在 render之前设置了表单值的问题。 解决 在使用setFieldsValue给表单Form的某一个filed赋值时,可能掺杂了非表单控件中的字段,Form表单在赋值和渲染时发现有些字段无法渲染在现有的字段(因为不存在),所以就会报出这

weixin_38720653

form调用form

form1调用form2中的控件, 对于form的应用及委托。

zhu_james
评论 19
收藏 已收藏
分享
返回顶部
ygxlf
VB 16,719 成员 110,520 内容