Reputation: 35
So I'm migrating an app I didn't write over to .NET and I'm not sure what the flag control does specifically and I also can't seem to find the equivalent of Flags control, is there even one?
Thanks a lot!
Public Sub Flip_Click(ByVal eventSender As System.Object,
ByVal eventArgs As System.EventArgs) Handles mnuFile_Import_Flips.Click
Dim cdlOFNHideReadOnly As Object
Dim cdlOFNFileMustExist As Object
CommonDialog1.Flags = cdlOFNFileMustExist + cdlOFNHideReadOnly
Upvotes: 1
Views: 954
Reputation: 885
The flags are equivalent to:
OpenFileDialog1.CheckFileExists = True
OpenFileDialog1.ShowReadOnly = False
But since these are default values you should NOT need to specify them.
Upvotes: 3