Multiple sounds in one button

would you kindly give me a suggestion that how to make multiple sounds in a button of a windows form application. actually, being a newb i'm trying to develop a piano application by C# for my own interest. the problem is, when i press one button it plays
too long & i had to wait until the wav file is finished & after that i had to press another button. what's the code for playing multiple sounds together in one button? u know, then i can play chords too. would you kindly explain or give a code?

Hi Rinku,
This is an example for you:
A Piano Key Control in C#
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Multiple functions in one button

    Good evening,
    Is it possible to run multiple functions with one button?
    For example: With a button to open and close an object?
    Thanks 

    Hi Rinku,
    This is an example for you:
    A Piano Key Control in C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Submiting multiple forms with one button

    I have a form that has a cfform within it. The cfform has a
    cfloop in it that includes an id and a dropdown list box that
    includes a new id. I want to transfer one id to another. I want the
    user to be able to click on one button that would update all the
    rows in the table with the new id.
    If there are 3 rows in the query, the user would select an
    entry in a dropdown for each row and upon clicking on the submit
    button all three rows would be updated with the id selected from
    the dropdown.
    Any suggestions?
    Thanks for the help!
    Gary

    There isn't a way to set this up using the Paypal payment integrated into FormsCentral using seperate forms for each child, you can set up one form so they can register additional children and then pay in one session, but if you need each child to be a unique form submission it can not be set up to pay for multiple at once.
    Thanks,
    Josh

  • Difficulty with SF2 files containing multiple sounds; only one sound will play

    Here's my difficulty. I know exactly how to install SF2 soundfonts on my computer, I have used them in several compositions, but there's one limitation I havent been able to overcome.
    Some soundfonts, as you probably know, contain multiple sounds. My problem is that when I have a multi-sound SF2 selected, I can only get GarageBand to play one sound -- presumably the first one in the pack. There are no options in the DLS Music Player window for selecting other sounds within the soundfont; only the soundfont itself is listed. I have a couple of soundfont packs where the different sounds are all split into individual SF2s within a folder, and that displays as a submenu properly... but I can't get these others to work properly. Any ideas?

    I don't think you can get it to work with the current version of GB. There used to be a plugin called SoundFontSynth that handled soundfonts with sound banks, but it has been discontinued and the auther never replied to emails.

  • Run multiple reports with one button

    Hello, I am new to Oracle Form Builder and I have a generic form built that has a button the user will press to run a specified report. I'm wondering if it's possible to use the same form with the one run report button to print multiple reports at the same time. Is this possible?

    I recommend that you start here:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    You can do just about anything in Forms if you are creative enough. However, exactly how you do it will partially depend on things like which version you are using, the platforms (OS on client and server), and the preferred behavior you would like to see.
    Here is an older document whch explains how to integrate Forms/Reports. This old doc mostly still applies to the latest versions.
    http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf

  • Scripting Multiple Behaviors for One Button

    Dear Jimmy,
    This question is similar but different to the ones you helped me with a few weeks ago but different enough I need some assistance. Posted this last week, no one has yet to answer. Hope your on line today.
    I now need to replalce the text that read "Invalid until Submitted" and then changed and read "Submitted and Valid" after the Submit Button has been clicked to something a little different.
    I now need text to read "Draft for Review" on the form until the submit button is clicked. This text "Draft for Review" needs to disappears or become invisible after the email button has been clicked on the form.
    Additionally, I need a date on the form to be filled in before the form user can email the form out.
    I now need the form to:
    (1) require a date field entry in a date/time box in order to submit the form by email.
    (2) take the serial number from a field and put it in the email submect line.
    and (3) make the text "Draft for Review" text disappear or become invisible,
    ALL 3 need to happen, when the submit button is clicked. (Which is a button, not an email button now).
    Can you tell me why the scripting I have below will give the message when the button is clicked. I want, "Please enter the date the Silver Coverage Inclusions were explained" if the date is not entered. However, without a date being entered, proceed to open email without making form user enter the date after they click OK when the request message to enter the date come up? This allows the form to be sent WITHOUT the form user really entereing the date because the email opens up next.
    Fortunately, my "Draft for Review" text disappears.
    The Scripting being used is (combination of some you gave):
    if(T100.rawValue == null)
    app.alert("Please enter date selling dealer explained Silver Level Coverage Inclusions.");
    xfa.host.setFocus("T100");
    StaticText3.presence = "invisible";
    var emailSubject = serialNumber.rawValue;
    var myDoc = event.target;
    myDoc.mailDoc(
    false,
    "[email protected]",
    "[email protected]",
    "[email protected]",
    emailSubject,
    "Email body goes here."
    Can you tell me how to make all three work together correctly and in the 1,2,3, order from above?
    Thank you,
    Victoria Holt
    To post a message, compose your text in the box below, then click on Post (below) to send the message.
    A blank line starts a new paragraph

    Dear Jimmy,
    Thank you! This worked.
    Your really really GREAT at this.
    I have several very specific questions I need answered to make a couple of other forms work.
    I need help with a similar but different submit button.
    I also need assistance with formatting a few numeric and alpha numeric fields.
    I thought you might work with Adobe but later this afternoon soon a link with an email that seemed to indicate you might be affiliated with Pac Bell.
    My questions is since I need some more specific help rather quickly would you it be alright with you and ethically correct for me to comission you to help me by telephone and email on our off hours tonight and some Saturday?
    I do hope so. If you would be as kind please let me know how you would like to exchange phone numbers and/or email.
    Thank you again. I do look forward to a reply. I hope you can help.
    Best regards,
    Victoria HOlt

  • Controlling multiple movies with one button

    Hi flash gurus,
    I have 4 movies of the same length running on my stage in the
    FLV playback component, with different instance names. I also have
    a single play/pause component. I want all of the movies to play
    together and unpause/pause when I press the play/pause button.
    However, I have only been able to get the play/pause button to
    control one of the movies (the last one listed in the
    actionscript). I'm using the following code to attach the
    play/pause component to the FLV playback movie:
    FLV_instance_name1.playPauseButton = PlayPause_instance_name
    FLV_instance_name2.playPauseButton = PlayPause_instance_name
    FLV_instance_name3.playPauseButton = PlayPause_instance_name
    FLV_instance_name4.playPauseButton = PlayPause_instance_name
    When I use this, the play/pause button only controls the
    FLV_instance_name4 movie. How do I get it to control all 4 moives?
    Any help is much appreciated. Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • Perform multiple actions with one button

    Is it possible to do 2 things when clicking a single button?
    Like this:
    A button adds an item to a collection and after adding the button must be disabled.

    Yes - you can chain multiple commands together with a ;
    In this example, add a button control (Button1) and an Input Text (Text1) control.
    Set the OnClick property for Button1 to:
    Collect(myCollection, {FirstName: Text1!Text}); UpdateContext({ButtonDisabled: false}); UpdateContext({ButtonDisabled: true})
    Set the Disabled property for Button1 to:
    ButtonDisabled
    FYI - The UpdateContext is used twice to change the state of a context variable.
    Let us know if this answers your question -
    Thor

  • Play/stop sound on one button (AS3)

    hello
    when you click the first time on the button, it should start the song, when you click a second time on the button, it should stop the song. how do i make this with actionscript 3?
    regards
    simon

    A very basic example:
    You'd need 3 var:
    private var _sound:Sound;
    private var _soundChannel:SoundChannel;
    private var _soundChannelPosition:Number = 0;
    Then create a Sound:
    _sound = new Sound(new URLRequest("some.mp3"));
    Stop/play the sound on click:
            private function click(e:MouseEvent):void {
                if(_soundChannel == null){
                    _soundChannel = _sound.play(_soundChannelPosition);
                } else {
                    _soundChannelPosition = _soundChannel.position;
                    _soundChannel.stop();
                    _soundChannel = null;

  • How download from multiple accounts with one button

    What do I do to have multiple accounts checked and messages downloaded without opening the get mail dropdown. I used to just hit the get mail button.

    I use this add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/get-selected-mails/
    which lets you define various sets of email accounts. Any of these sets can be defined as the default action.
    There is also a GetAllMails add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/get-all-mails/

  • Mutiple Behaviors from one button

    How can i set multiple behaviors to one button? I want a
    popup window to close when I click Submit, and also change the main
    page to a different website. Any help with this will be
    appreciated.

    Write a script that does it, activate the script with the
    button.
    "B3CARL" <[email protected]> wrote in
    message
    news:ea9at5$anv$[email protected]..
    > How can i set multiple behaviors to one button? I want a
    popup window to
    > close when I click Submit, and also change the main page
    to a different
    > website. Any help with this will be appreciated.

  • Download multiple reports in one hit

    I am just wondering if there anyway to have apex to download multiple reports with one button?
    The normal way I deal with reports is create the query within shared components, and then create a button on a page that links to the print URL of the report. What I am wondering if there is anyway to have a button that will download all reports in one go?
    Thanks for help in advance,
    Trent

    Trent,
    Let's say you have two Report Queries, Employee and Department then if you want them to download with single button click
    Set button target as URL
    In URL section
    javascript:download_reports();In page HTML Header
    <script type="text/javascript">
    function download_reports()
    window.open('f?p='+'&APP_ID.'+':0:'+'&SESSION.'+':PRINT_REPORT=Employee');
    window.open('f?p='+'&APP_ID.'+':0:'+'&SESSION.'+':PRINT_REPORT=Department');
    </script>Regards,
    Hari

  • Mainstage + NanoPad: how assign sound to every button?

    Hello men!
    I need your help. I use mainstage 2.0.1 with my master keyboard cme m-key AND my new Korg nanoPad. I have created patch sounds in mainstage and I want to assign every sound to one button of my nanopad.
    Example:
    1- Strings
    2- Piano
    3- Choir
    when I press 1 on my nanopad mainstage plays strings, when I press 2 plays piano ecc. I read on internet that I need a learn mode but I can't do that
    Can you help me? I made a workaround assign 2 button to prev and next patch but It is just a workaround I put my nanopad on program change and control change without success.
    Thank you in advance.

    {quote:title=PaoloMactux wrote:} I use mainstage 2.0.1 with my master keyboard cme m-key AND my new Korg nanoPad. I have created patch sounds in mainstage and I want to assign every sound to one button of my nanopad.
    Example:
    1- Strings
    2- Piano
    3- Choir
    when I press 1 on my nanopad mainstage plays strings, when I press 2 plays piano ecc. I read on internet that I need a learn mode but I can't do that
    {quote}
    I think that the Learn you are looking for is in the MS Layout window.
    Click on a button in your layout to select it.
    click on the Learn button in the Inspector frame
    press the button on your hardware three times
    select the next button in the layout
    press the button on your hardware three times/
    Repeat as necessary.

  • Keynote- Can you add multiple sound tracks to one presentation

    Can multiple sound tracks be added to the same presentation? For instance, can I add one sound track to play for slides 1-20 and a second, different sound track to play starting at slide 23 thru 36?

    Jonathan:
    You can create a single Story from each track and set the End Jump for each Story to the next one. Set the End Jump of the last Story to your menu and assign the first one to your PLAY ALL button.
    Give it a try !
      Alberto

  • Help with multiple sound buttons?

    Is there any way I can have multiple sound buttons that works as stop buttons for each other?
    I mean.. I now got 3 buttons that start 3 different songs, but they overlap each other when I press more than one. I'd like Song 1 to stop when I press Song 2 or 3. And vice versa
    I'm trying to make learning tools for autistic kids so helping me is helping them . I'd really appreciate it. Thanks

    Thanks! Is there any way to do it without using actionscript?
    The sounds are simply connected to the buttons through Properties

Maybe you are looking for