Hi i'm getting this error, do I have to add a special namespace? "The type or namespace name 'call' could not be found..."
private void start_btn_Click(object sender, EventArgs e)
{
call DoIt();
}
void DoIt()
{
...code
}
One doesn't use call to invoke a function in C#, so fix your code thus:
private void start_btn_Click(object sender, EventArgs e)
{
DoIt();
}
As @Kheldar has suggested, you're probably thinking of the call statement in Visual Basic, which isn't a feature of C#.
Remove call in your snippet, in C# does not exist such kind of keyword. DoIt(); will execute your function pretty well.
Anyway, I think you might want to read something like: