IMPORTANT: Please read our Guide To Quality Writing before you begin posting!

Dismiss Notice
Please note that we are only approving writers from the US, UK and Canada at this time.

How To Make Your Buttons Beep In c# And Java.

Discussion in 'Programming' started by mmbmworldwide, Dec 30, 2016.

  1. mmbmworldwide

    mmbmworldwide New Member

    Joined:
    Dec 30, 2016
    Posts:
    10
    Likes Received:
    0
    Gender:
    Male
    Good day everyone.I will be posting on how to make beep sounds on your windows form both in c# and java

    C#
    1)
    create a button(s) on your windows form.
    2)Double click on it.
    3)Type Console.Beep();'
    4)Run it and see.It should be working fine.

    JAVA
    1)
    Create a button(s) on your windows form.
    2)if you are using Netbeans go to the source of the code and import the following
    import java.awt.*;
    3)Double click on your button and type
    Toolkit.getDefaultToolkit().beep();
     

Share This Page