Listing the Drives Letters |
|
Introduction |
Here is an example of displaying the drive letters of a local computer |
private: System::Void Form1_Load(System::Object * sender, System::EventArgs * e) { String *ListOfDrives[] = Environment::GetLogicalDrives(); TreeNode *tnParent = this->treeView1->Nodes->Add("File Management"); for(int i = 0; i < ListOfDrives->Count; i++) { this->listBox1->Items->Add(ListOfDrives[i]); this->comboBox1->Items->Add(ListOfDrives[i]); this->treeView1->Nodes->Item[0]->Nodes->Add(new TreeNode(ListOfDrives[i])); } }
|
||
Home | Copyright © 2004-2005 FunctionX, Inc. | |
|