CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Join Date
    Jul 2011
    Posts
    7

    Re: button1_click help?

    Nothing will calculate. Does that mean nothing is connected? I have no idea how to connect them. I thought my first question in the thread would solve that problem.

  2. #17
    Join Date
    Jun 2011
    Location
    .NET4.0 / VS 2010
    Posts
    70

    Re: button1_click help?

    Your button may not have the Calculate_Click event assigned to it so having the code wont do anything if its nothing is assigned to use it.

    Coming from another beginner the way I sometimes debug things is make the button do something I know it will do. For example make the button change a label to "Works!" that way I know the button works. If it changes then I move on to something like checking if the arrays got values assigned to them. It is not the best strategy but it works for me and I can pinpoint the issues with the small projects I have done so far.

    From the looks of it your calculate button should be working with the code Arjay provided. If you copied and pasted the whole code section you may want to make sure your button knows when and what to use. You can assign Events by clicking the button and in the properties window click on the lightning bolt.

  3. #18
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: button1_click help?

    Quote Originally Posted by Courtneyyw View Post
    Nothing will calculate. Does that mean nothing is connected? I have no idea how to connect them. I thought my first question in the thread would solve that problem.
    Did you try debugging as I've suggested? Were you able to set break points? Were the break points hit when you started debugging?

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured