Hemant Kumar
Hemant Kumar

Reputation: 4611

How to restrict to select multi Select of Files in Open FileDialog?

I have some task to select files in VB6 with the control "CommonDialog1".When the project is migrated this control is converted to openfile dialog.When some of the properties are not converted it is showing as commented. This line was commented

'CommonDialog1.Flags = CommonDialog1.Flags Or &H80000  ' Dont ALLOWMULTISELECT

I want to know do we have any propery in VB.NET for Open File Dialog Control?

Upvotes: 0

Views: 148

Answers (1)

SysDragon
SysDragon

Reputation: 9888

Just make a quick search, or use the help of IntelliSense if you're using Visual Studio.

Dim myOpenFile as New OpenFileDialog()
myOpenfile.Multiselect = False

Documentation

Upvotes: 4

Related Questions