无法使用 .show() 在 VB.net 2010 中打开表单 [英] Cannot open a form in VB.net 2010 with .show()

查看:29
本文介绍了无法使用 .show() 在 VB.net 2010 中打开表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是尝试使用Exercise.show()"打开一个新表单,因为到目前为止它仍然有效,但是对于这个练习表单,它没有作为表单选项显示,所以我无法打开它.我应该在这里做什么?

Private Sub Exercises_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 处理练习.Click练习.Show()我.隐藏()结束子

解决方案

如果您的实际表单名为练习",那么您需要输入:

<块引用>

 Dim frm 作为新练习frm.ShowDialog()

谢谢

Eddy Jawed

I am simply trying to open a new form using 'Exercise.show()' as this has work until now, however with this Exercise form, it is not being shown as an option as a form so I cannot open it. What should I do here?

Private Sub Exercises_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Exercises.Click
    Exercises.Show()

    Me.Hide()

End Sub

解决方案

If your actual form is called 'Exercises' then you need to type:

    Dim frm As New Exercises        
    frm.ShowDialog()

Thanks

Eddy Jawed

这篇关于无法使用 .show() 在 VB.net 2010 中打开表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆