I'm new to c# but quite familiar with c, this error however doesn't make much sense to me, as I have specifically followed the required syntax shown on http://msdn.microsoft.com/en-us/library/2aeyhxcd.aspx
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
int years = 1;
while (years <=10) {
public Form1()
{
InitializeComponent();
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
int value = Convert.ToInt32(bushels1.Text);
numericUpDown1.Maximum = value;
}
private void bushels1_Click(object sender, EventArgs e)
{
}
private void nextYear_Click(object sender, EventArgs e)
{
}
}
}
}