需要vb.net的控件 [英] Need a control for vb.net

查看:73
本文介绍了需要vb.net的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生/女士



我需要一个控件来显示我的vb.net应用程序中控件中的所有文件..所以我想知道通过哪个控件我可以查看控件中的所有文件...提前感谢



删除了SHOUTING - OriginalGriff [/ edit]

Sir/madam

I need a control which display all files in a control in my vb.net application.. so i want to know by which control i can view all files in a control ... thank in advance

[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

亲爱的穆罕默德,



这不是问题。如果你想列出一个目录中的所有文件(比如你在c :),你可以这样做:

Dear Mohammad,

This is not a question. If you want to list all files in a directory (say, you root at c: ), you could do something like this :
Dim di As New IO.DirectoryInfo("c:\")
   Dim diar1 As IO.FileInfo() = di.GetFiles()
   Dim dra As IO.FileInfo

  'list the names of all files in the specified directory
   For Each dra In diar1
       ListBox1.Items.Add(dra)
   Next



因为今天我很懒,我用Google搜索并在列出目录中的文件 [ ^ ]。



小心,

VG


As i''m a little lazy today, i googled this and found it in List Files in a Directory[^].

Take care,
VG


这篇关于需要vb.net的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆