Content Archived

This content is no longer current. Our recommendation for up to date content:

Getting Familiar with the My Namespace - 24

Sign in to queue


This video demonstrates the use of the My Namespace in Visual Basic which provides a short-cut to often used classes in the .NET Framework Class Library.  We demonstrate how to use the My Namespace to retrieve information about the user's computer, search for files on the file system, perform file and directory manipulation, get command line arguments, work with application settings and more.

Download the source code for Understanding the My Namespace



The Discussion

  • User profile image

    I use the My namespace all the time.  It is a great thing to remember newbies!


    Thanks Bob for the command line Arguments and the


    I never knew about that!

  • User profile image
    Don Friedman

    Thankyou very much for your clear, percise informative lessons !!!
    Don in Florida

  • User profile image

    @Don Friedman:  Thanks Don!  Glad they were helpful.

  • User profile image
    Kari Holgarsson

    Hello. First of all thanks for a great series. One question what happens at 12:31? The names shown in the console window show Brian and Chuck but the names assigned to the settings were Bob and Steve (11:44). Brian and Chuck were assigned later approx. 13:30...

  • User profile image

    @Kari Holgarsson:  Great catch.  I think you caught me here pulling a slight-of-hand ... I actually ran through this exercise off camera once (a practice run).  I think the values were cached somehow -- perhaps those values were cached in the output directory (/bin) somehow.  I **forgot** about this otherwise I would have probably re-recorded it.  If you write the code yourself during this exercise, you will get the correct results.  Sorry for the confusion.  Sad

  • User profile image
    Kari Holgarsson

    Ok, thanks for the explanation ;-) I will try the exercise myself, I was just wondering if some values could be "stock" in memory (unable to update) as this could be very difficult to debug in a more complex code.

Add Your 2 Cents