FAQ - VB to C sharp net guide
Question
The name elseif does not exist in the current context
Answer
The error message is quite right, the soution is:
bool yn = false;
bool yn1 = true;
if (yn)
{
}
else if (yn1)
{
}
else
{
}
Other conventions that may trap the experienced vb
programmer
If you found this information useful, please share it!
This FAQ was last updated on 21 July 2011