checking and changing system volume vb.net checking and changing system volume vb.net

The solution for “checking and changing system volume vb.net checking and changing system volume vb.net” can be found here. The following code will assist you in solving the problem.

Dim vol As New Sound(path_to_nircmd)
vol.setVol(50)Public Class Sound
Dim nircmd As String
Const MAXVOL As Integer = 65535

Public Sub New(ByVal nircmd_location As String)
nircmd = nircmd_location
End Sub

Public Sub setVol(ByVal level As Integer)

Dim p As New ProcessStartInfo
p.FileName = nircmd
p.Arguments = “setsysvolume ” & (MAXVOL * (level / 100)).ToString
Process.Start(p)

End Sub
End Class

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts