您好我正在尝试进行练习并在编译时不断收到此错误.
Visual Basic错误BC30456'Form1'不是'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
Run Code Online (Sandbox Code Playgroud) vb.net ×1