使用 vb.net,我如何遍历给定目录中的所有文件名,然后将它们显示在标签中?
Dim PATH_DIR_1 As String
Dim INTERVAL_DIR_1 As String
PATH_DIR_1 = Registry.GetValue("HKEY_CLASSES_ROOT\SOFTWARE\Sidewinder", "DIR_1", "")
INTERVAL_DIR_1 = Registry.GetValue("HKEY_CLASSES_ROOT\SOFTWARE\Sidewinder", "INT_DIR_1", "")
For Each foundFile As String In (PATH_DIR_1)
Label1.Text = (foundFile)
Next