Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Drive list Control and File list Control in VB language

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the drive list control and file list control in VB language. It is very detailed and has a certain reference value. Interested friends must read it!

I. Review data types

Boolean type

English use: boolean

Its value is only true or false.

Second, drive list control

Drivelistbox control: drive list box control

Function: used to display local disks, such as c disk, d disk, e disk.

The drive (local disk) selects the path of the drive letter and gets it through the drive property.

Event: change event

Execute the code in the change event when the drop-down list changes.

Third, file list control

Dirlistbox control: folder list box control

Function: used to display all the folders under a drive letter.

The path property can be used to set or get the displayed folder.

Filelistbox control: file list box control

Function: used to display all the files under a folder.

The path property is used to set or get the displayed file.

The list controls of knowledge points in this section are often used in conjunction and are generally used to locate the location of a specific file.

The knowledge interface of this section:

This section of knowledge source code:

Private Sub Command1_Click () Shell File1.Path & File1.FileNameEnd Sub

Private Sub Dir1_Change ()

File1.Path = Dir1.Path

End Sub

Private Sub Drive1_Change () Dir1.Path = Drive1.DriveEnd Sub

The above is all the content of the article "how to use Drive list Control and File list Control in VB language". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report