在简单的消息框中找不到“Sub Main”? [英] 'Sub Main' was not found in Simple message box(es)???
问题描述
我正在尝试创建一个对话框,但是当我尝试调试它时,我收到一条错误消息,如标题所示,未找到"Sub Main"。但是显然有一个Sub Main()语句并且它一直声称它仍然没有找到。我在做什么
错了?我正在使用Express。
I am trying to create a dialog box but when I try to debug it I get an error message saying that, as the title states, 'Sub Main' was not found. But there is clearly a Sub Main() statement and it keeps claiming that it was still not found. What am I doing wrong? I'm using Express.
Module box
Sub Main()
MsgBox("Error", MsgBoxStyle.Critical, "Error")
End Sub
End Module
此外,当我尝试绕过错误时,我得到另一个说.exe的输出文件不见了。但是我更正了吗?
$
Also when I try to bypass the error, I get another one saying that the output file for the .exe is missing. However do I correct this?
推荐答案
我正在尝试创建一个对话框,但是当我尝试调试它时,我收到一条错误消息,指出,如标题所示,未找到"Sub Main"。
I am trying to create a dialog box but when I try to debug it I get an error message saying that, as the title states, 'Sub Main' was not found.
您使用的是什么项目类型以及您将哪些设置为启动表单? 您是否重命名了模块? 请参阅:
https: //docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/main-procedure
What project type are you using and what have you set as the startup form? Have you renamed your module? See:
https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/main-procedure
这篇关于在简单的消息框中找不到“Sub Main”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!