question

MarkHammonds-5254 avatar image
0 Votes"
MarkHammonds-5254 asked XingyuZhao-MSFT commented

Sound issues from Visual Studio code (basic) that is used on a shared workstation.

I have code that plays sound and works great on workstations that are used by only one person and only logged into by one person. It will not work on workstations that are shared by multiple users. By multiple users, I mean it has a common login that is shared by multiple people.

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarkHammonds-5254 avatar image
0 Votes"
MarkHammonds-5254 answered XingyuZhao-MSFT commented

Below is the line of code that I am using.

My.Computer.Audio.PlaySystemSound(System.Media.SystemSounds.Asterisk)

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MarkHammonds-5254 ,
Is the following code helpful ?

 SystemSounds.Asterisk.Play()
0 Votes 0 ·