title: Using a method from another class in the main form
body: <p>I'm trying to create a to-do list program using Windows Forms with C# (I'm using Visual Studio 2010, if that's relevant), where the user can add a new task and set the title and its description, as well as deleting and editing the tasks. </p>
  
  <p>I've got it working by putting everything into one form class and by putting in the same delete and edit code for each task's delete and edit button (I've set it so up to 5 tasks can be added), but it is very messy and I want to put all the code to set the task's title, description along with editing and deleting in a separate class and simply call each method where it's needed. </p>
  
  <p>I've spent the last 2 weeks searching all over the internet trying to find something that will help, but I'm new to coding and a lot of the stuff i find isn't relative or i just don't understand. I've used <code>form f1 = new form1();</code> and used <code>f1.AddTask();</code> and I get no errors, but when I run the program and click on the buttons nothing happens.</p>
  
  <p>I'm new to this site and not too sure what is needed, but I'm willing to do anything to get this to work. Any help would be immensely appreciated.</p>