Well, long story short, I'm taking a class where we program basic stuff in C#. However, I don't speak C# very well, I speak VB6. Luck for me, I know kind of what to look for, and know how to code, I just don't know nomenclature/syntax.
So, over the course of the course, I'll need little tidbits of help on how to do things.
1) What is the code for a delay?
Example:
Code: Select all
While(true)
{
lbl1.BackColor = Color.Red;
DELAY(200);
lbl1.BackColor = Color.Blue;
DELAY(200);
}
2) What is the code to complete the following "if" statement?
Example:
Code: Select all
if (the value in txtbox1 is not a number)
{
do this;
}
else
{
do that;
}
It doesn't like my else statements, and I'm not sure what to put after the 'if' to check that a number has been entered into the textbox. Another alternative is to convert the letter/character to a number, another thing I only know how to do in VB6.