Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
VB
Error   1   'WindowsFormsApplication4.Form1.pictureBox1_Click(object, System.EventArgs)' must declare a body because it is not marked abstract, extern, or partial  pre>
 ı dıd not fınd what does ıt mean what ı must
Posted
Comments
stibee 11-Apr-13 8:14am    
Can you show the code please?
johannesnestler 12-Apr-13 9:03am    
Just a quick Tip: This is a valid question. Maybe a beginner question - I have no problem with that. But I think for you it would be better to have a (quick) look at the C# basics. Concentrate on syntax and try to type some examples in a VisualStudio Project. You will quickly learn what the "mysterious" error messages are trying to tell you, if you look what happens while you are typing...

1 solution

It mean that where you declare the method you forgot the curly brackets - and probably added a semicolon instead...
C#
protected void pictureBox1_Click(object sender, EventArgs e);
------------------------------------------------------------^
   {
   }
 
Share this answer
 
Comments
arifemutlu 11-Apr-13 8:17am    
private void pictureBox1_Click(object sender, EventArgs e);


private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
string Coords = e.Location.ToString();
button5.text = coords;

}
}
thıs ıs my code
OriginalGriff 11-Apr-13 8:19am    
As I said: you have a semicolon instead of a set of curly brackets: without the brackets, your method has no body, and you get the error.
fjdiewornncalwe 11-Apr-13 17:18pm    
My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900