-1
我Private Sub btnDisplay
點擊事件過程告訴我(上btnDisplay
排藍線的錯誤消息):「聲明無效在命名空間」按鈕,單擊處理
「聲明無效在一個命名空間「`。
我已經加了End Sub
和End Class
,仍然收到相同的錯誤信息。
Public Class frmMain
Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
Me.Close()
End Sub
End Class
Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click
' displays D's 3 comments
Dim intChoice As Integer
Integer.TryParse(txtChoice.Text, intChoice)
If intChoice = 1 Then
lblComment.Text = "Not Exactly"
Else
If intChoice = 2 Then
lblComment.Text = "No, Were You Listening?"
Else
If intChoice = 3 Then
lblComment.Text = "This Is Close"
Else
lblComment.Text = "N/A"
End If
End If
End If
End Sub
_「我已經添加結束Sub和末級,仍然得到了同樣的錯誤mssg。」 _如果你已經raelly添加它,你爲什麼不顯示,代碼呢?因爲這裏顯然缺失。 –
你的'結束課程'必須是你的所有潛艇......畢竟你的課程包含了所有你的潛艇...... –