您好,我正在尝试做一个练习,并在编译时不断收到此错误。
Visual Basic error BC30456 'Form1' is not a member of 'WindowsApplication1'
我不知道如何解决它。
下面是我的代码:
Public Class frmCentsConverter
Private Sub txtAmount_TextChanged(sender As Object, e As EventArgs) Handles txtAmount.TextChanged
If IsNumeric(txtAmount.Text) Then
Dim NumberofCents As Integer
NumberofCents = CInt(txtAmount.Text)
lblDollars.Text = CStr(NumberofCents \ 100)
lblCents.Text = CStr(NumberofCents Mod 100)
End If
End Sub
Private Sub lblTitle_Click(sender As Object, e As EventArgs) Handles lblTitle.Click
End Sub
End Class
最佳答案
如果您重命名了启动窗体 1,则可能还必须更改启动窗体设置。您可以找到此设置以在“解决方案资源管理器”中打开“我的项目”。选择“应用程序”部分,根据需要更改“启动表单”。
希望这会有所帮助,哈里
关于vb.net - 视觉基本错误 BC30456 'Form1' 不是 'WindowsApplication1' 的成员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32046516/