Visual Basic Fundamentals: Development for Absolute Beginners

Getting Familiar with the My Namespace - 24

Download this episode

Download Video

Download captions

Download Captions

Description

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

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • Algorithum

      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

      My.Settings.Save

      I never knew about that!

    • Don Friedman

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

    • BobTabor

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

    • 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...

    • BobTabor

      @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

    • 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.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.