将VB6转换为VB.NET

时间:2016-04-14 08:08:31

标签: vb.net visual-studio-2008 vb6-migration

The code in VB6 is:
------------------------------
Load(Inter_pol_surfex)
------------------------------
The message error is:
------------------------------
Name 'Load' is not declared.
------------------------------

我可以收到修复此邮件的代码吗?

2 个答案:

答案 0 :(得分:0)

我猜你是在尝试展示一个表单。在.NET中没有用于显示表单的Load函数,您必须创建表单的实例。

替换

Load(Inter_pol_surfex)

由此:

Dim f As New Inter_pol_surfex
f.Show()

答案 1 :(得分:-1)

试试这个:

Private sub Load (Inter_pol_surfex as [type of variable] )

end sub