调用FORM问题!急求!请教各位大侠了!
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等; 高级人士勿笑
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; }
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表单在赋值和渲染时发现有些字段无法渲染在现有的字段(因为不存在),所以就会报出这
form调用form
form1调用form2中的控件, 对于form的应用及委托。


