Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,375 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Friends.
I have a C++ Winforms program that has the snippet below. I need this snippet in Visual Basic. I've already made a few attempts, but I don't know the meaning of the word auto. How to pass this snippet to Visual Basic?
//GET THE NAME OF A DRIVE'S FOLDER
auto pastas = Directory::GetDirectories("D:\\");
for each (String ^ dir in pastas)
{
listBox1->Items->Add(dir);
}
label4->Text = listBox1->Items->Count.ToString();
For example :
Dim pastas = Directory.GetDirectories("D:\\")
For Each directory In pastas
' code...
Next