Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the cascade search file of drivelistbox and other three controls in VB language?

Shulou Source: shulou.com Published: 2022-06-01 02:59:36 10月11日 Update

Today, I will talk to you about the VB language drivelistbox and other three controls cascade to find what kind of file, many people may not know, in order to let you know more, Xiaobian summarized the following content for you, I hope you can harvest according to this article.

drivelistbox controls dirlistbox controls filelistbox controls cascade find files

I. Drivelistbox control

It works like a drivelistbox.

1, you can set the display text, background color and other styles

2. Use tooltiptext to prompt text when the mouse is suspended

3. Drive1.Drive represents the selected drive letter of the control

Second, dirlistbox control

Dirlistbox List of folders

Cascading or correlation by code Dir1.Path = Drive1.Drive

Dir1.Path represents the path to a folder

tips:

On Error Resume Next

Meaning: When an error occurs, do not stop, continue to run the next code

Third, filelistbox control

filelistbox file list

File1.Path = Dir1.Path Use this code to associate/cascade folder paths to file lists

File1.Path represents the folder list path

IV. Key points of knowledge:

1. Master the basic use and linkage method of drivelistbox dirlistbox filelistbox three controls

2. Learn to use batch processing to turn around and open files

After reading the above, do you have any further understanding of how the three controls in VB, such as drivelistbox, cascade to find files? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Tags: Control file folder three code content path language representative text knowledge association meaning method method time more article background industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology Linux MySQL Shulou Information