Populate ToolStripMenuItem with Directory Files
Use this board to post your code snippets - tips and tricks
1 post
Page 1 of 1
Hello Coders,
I want to share this handy code, I know this is simple for those experts.
Thanks..
I want to share this handy code, I know this is simple for those experts.
Code: Select all
That's it. Dim dir As New IO.DirectoryInfo("D:\")
'' Adding the files at Form Load event
For Each file As IO.FileInfo In dir.GetFiles
SampleToolStripMenuItem.DropDownItems.Add(file.Name)
Next
Thanks..
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023