Cameron Kloot

hi,
i have a very bad problem:
usually the code is like this:
private void saveToolStripMenuItem_Click(object sender, EventArgs e)

now it is like this:
private void saveToolStripMenuItem_Click(object sender, EventArgs e)

and the void is underlined with the red squiggly thing. it says
Error 1 Expected class, delegate, enum, interface, or struct. It wouldnt be that bad if it was only one line, but there are twenty-six of them.
also
on the action tab of the properties window, the place were there should be "Click saveToolStripMenuItem" there is nothing. that is probably the problem. is there anyway to fix this without re-writing the code, which is what i had to do once before
please help :)
thanks




Re: Visual C# Express Edition Bad, Bad, Problem

jrboddie

Start by looking at the first instance of the red wavy line.

Look at the lines of code above. Are you perhaps missing a semicolon or brace





Re: Visual C# Express Edition Bad, Bad, Problem

Cameron Kloot

i fixed it, thanks anyway
it was not enough braces
;)
noob problem