From the course: Visual Basic Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use .NET classes in your application

Use .NET classes in your application - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Start my 1-month free trial

Use .NET classes in your application

- [Instructor] In this example, we'll look at the parts of this code that are VB specific, and the parts that are the .NET-framework classes. In looking at the code in this module one, VB file, let's take a quick look at what the code does. On line seven, I'm declaring a variable called folder name, and it's pointing to a folder I created earlier in the course called VbTemp. Line eight creates a string array. Line nine gets all the files in that folder, and stores them in the string array. Line 10 changes the foreground color for the console. Line 11 through 14, this is a loop that loops all the file names, and prints them out to the console, and then finally, we have a console, read line on line 16. This is what the application looks like. It prints out the file names. Now let's look at these lines at code again, and try to figure out which part of the line is Visual-Basic specific, and which part of the line is…

Contents