Button Commands

Last post 06-16-2008 5:26 AM by Thomas Sun – MSFT. 3 replies.

Sort Posts:

  • Button Commands

    06-12-2008, 1:08 PM
    • Loading...
    • rwencel09
    • Joined on 06-12-2008, 4:56 PM
    • Posts 2

     Hi I'm Ryan and I'm 17.  I have taken an interest in programming and I am taking classes at my school to learn more about it. So I'm a little new to programming, and this question might seem obvious to most of you.

     

    I'm making a program simply for fun and games, but also to get into programming and practicing a bit more.  It's a game where you are presented with an event, and you have to make 1 out of 3 selections, and based on your choice there is a different outcome.

     

    My problem is that I can get the next event to display when one of the choice buttons is clicked.

     

    Like I said, this question might seem obvious, but I'm new to this and this problem is really bugging me.

     

  • Re: Button Commands

    06-12-2008, 1:27 PM
    • Loading...
    • bullpit
    • Joined on 06-29-2006, 3:59 PM
    • Posts 3,239

    What have you tried already?

    Thanks,
    Max
    If you can read this, you are too close to the screen!!!

    Get instant help for your problems here!
  • Re: Button Commands

    06-13-2008, 1:44 PM
    • Loading...
    • rwencel09
    • Joined on 06-12-2008, 4:56 PM
    • Posts 2

    I have tried some things that I'm not quite sure what they even do, but they sounded good.

     

    I started by using an if then statement, and setting up the command when a certain button is clicked then it would bring up a new event, and new text on the buttons.  The command I tried for the button is...

    btnChoice1(which is the name of one of the buttons).MouseButtons.Left

    But like I said I'm not quite sure what that even does.
     

  • Re: Button Commands

    06-16-2008, 5:26 AM
    Answer

    Hi,

    I guess your application is Windows Form Application, while this forum is ASP.NET web application forum.

    I suggest you post this question on http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=2&SiteID=1, which has many Windows Forms experts.

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter