Showing posts with label 【VISUAL VB NET】Sound. Show all posts
Showing posts with label 【VISUAL VB NET】Sound. Show all posts

Tuesday, May 11, 2021

【VISUAL VB NET】Sound

 Public Class Form1

Dim cmdProcess As Process = New Process() Dim fileArgs As String Dim path As String = "C:\Windows\System32\" Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click fileArgs = "Shell32.dll,Control_RunDLL Mmsys.cpl,,0" cmdProcess.StartInfo.Arguments = fileArgs cmdProcess.StartInfo.WorkingDirectory = path cmdProcess.StartInfo.FileName = "RunDll32.exe" cmdProcess.Start() cmdProcess.WaitForExit() Me.Show() End Sub End Class