반응형
* VBNET PC 비프음 (Beep) 예제...
전체 소스 코드
Form1.vb
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Console.Beep(262, 400) '도
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Console.Beep(294, 400) '레
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Console.Beep(330, 400) '미
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Console.Beep(349, 400) '파
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Console.Beep(392, 400) '솔
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Console.Beep(440, 400) '라
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Console.Beep(494, 400) '시
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Console.Beep(523, 400) '도
End Sub
End Class
반응형
'VB.NET Programming' 카테고리의 다른 글
[VBNET] [API] PC (종료, 재시작)또는 Diagnostics.Process 이용 PC 종료 (0) | 2020.01.06 |
---|---|
[VBNET] 프로젝트 리소스 (Resources) 에 추가된 이미지 불러오기 (0) | 2020.01.02 |
[VBNET] [API] 윈도우 창 찾기 (Window Form Search) (0) | 2019.12.24 |
[VBNET] [API] 다른 응용 프로그램 실행 : ShellExecuteA () (0) | 2019.12.19 |
[VBNET] Params 키워드를 이용한 가변 전달 인자 예제 (0) | 2019.12.16 |