0
안녕하세요 저는 VS 2015에서와 마찬가지로 VB를 배우기 시작했습니다. Bryon Newsome의 Beginning Visual Basic 2015에서 연습을하고 있습니다. 게시자 포럼이나 게시자 스스로 도움을받을 수 없습니다. 이전 연습에서 이런 유형의 오류를 해결할 수 있었지만 아래 수정 사항을 볼 수는 없습니다.bc30456 errors ... xxxx yyyy의 구성원이 아닙니다
가 하나 개의 레이블Severity Code Description Project File Line
Error BC30456 'OKCancel' is not a member of 'MessageBoxButtons'. MessageBoxButtons E:\Document\Programing\VB\MessageBoxButtons\MessageBoxButtons\Form1.vb 5
Severity Code Description Project File Line
Error BC30456 'Forms' is not a member of 'Windows'. MessageBoxButtons E:\Document\Programing\VB\MessageBoxButtons\MessageBoxButtons\Form1.vb 7
있습니다 : 텍스트 속성 아무 것도 lblResults가
을 클릭Public Class Form1
Private Sub btn2Buttons_Click(sender As Object,
e As EventArgs) Handles btn2Buttons.Click
If MessageBox.Show("Your Internet connection will now be closed.",
"Network Notification", MessageBoxButtons.OKCancel,
MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) _
= Windows.Forms.DialogResult.OK Then
lblResults.Text = "OK Clicked"
'Call some method here
Else
lblResults.Text = "Cancel Clicked"
'Call some method here
End If
End Sub
End Class
다음 두 가지 오류 메시지에서입니다 : 여기
페이지에서 코드 (214) 215입니다하나의 버튼이 있습니다. btn2buttons with text 속성 2 버튼.
MessageBoxButtons와 동일한 프로젝트 이름이기 때문에 vb는 이것이 프로젝트의 구성원이라고 생각합니다. 이 상수가 속한 정규화 된 이름을 추가하십시오. System.Windows.Forms.MessageBoxButtons.OKCancel –
안녕하세요 ... 위의 코드에서 제안한 행을 어디에 넣을까요? VB는 내가 넣은 곳에서 불평했다. 나는 VB에서 처음이다. 감사. – youkuya