|
-
Feb 18th, 2006, 01:46 PM
#1
Thread Starter
Junior Member
Quick Help with variables
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|