How can you make variables global or public? When I use a variable that I declared up in the form's class (public partial class frmMain : Form) it says "strHost does not exist in the current context" the cases match so it can't be a problem with the variable name not matching. Does anyone know what I need to do to the variable? On a side note just another quick question how do you make parameters in a method optional like this vb it's option Referer as string = "" but how would you do that in a C# code?
Thanks in advance for any help