Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where Is My Control

Status
Not open for further replies.

SGLong

Programmer
Jun 6, 2000
405
0
0
US
It's been a few years since I've done any C# coding and I'd like to brush up on things and get back into the job market. From the FinishButtonClickEvent I'm trying to access the fields I've created in my form (UserInfo), but for some reason VS2010 is not able to resolve them, giving me the message "The name 'txtFirstName' does not exist in the current context.". Here's a sample of the line of code:

Code:
lowerFName string;
lowerFName = txtFirstName.Text.Trim().ToLower();

How do I go about identifying the 'context' needed to make all my code work?

Steve
 
It took a while, but I was able to identify the 'context'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top