You have declared 'hdname' as a local variable in the Main method. As such, it only exists in the main method. The use of local and member variables and the passing of data from one object to another would fall under the category of fundamentals. I suggest that you work your way through that tutorial I suggested to learn how the language and the Framework work, then go back and try to do things with them, armed with the knowledge of how to do things like get data in one place and use it in another.