为什么我不能为新表单使用处理程序? [英] Why can't I use a handler for a new form?
问题描述
所以,我有一个代码,我在其中创建一个新表格
So, I have a code where I create a new form
Dim picform = New Form
我创建此表单的格式有这个
my form that I created this from has this
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
为什么我不能为我的新表单使用处理程序事件? visual studio不允许我为处理程序选择该表单。有没有办法让它有像form1这样的基础?
我尝试过:
不确定如何接近无基本形式。
why can I not use a handler event for the new form I have? visual studio does not allow me to pick that form for a handler. is there a way to make it have a base like form1?
What I have tried:
not sure how to approach a baseless form.
推荐答案
有了这些小信息,很难回答正确......
你在哪里填写表格?
一般来说,它必须如下:
With this little information it's hard to answer correct ...
Where do you have instanced the Form ?
Generally it must look like :
Public WithEvents PicForm as new Form
现在您应该可以使用此表格的活动...
如果这不匹配对于你的问题,你应该提供更多的信息,也许还有更多的代码......
Now you should be able to work with the Events of this Form ...
If this not matches to your question you should give more Information and perhaps also more code ...
这篇关于为什么我不能为新表单使用处理程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!