In the common dialog, how do you retrieve the value of the checkbox for readonly? Also, where would I find information about what flags are available? Thanks.
Printable View
In the common dialog, how do you retrieve the value of the checkbox for readonly? Also, where would I find information about what flags are available? Thanks.
commondialog1.flags = cdlOFNReadOnly
to get information if you are using VB6 you put the control on the form, select it and hit F1
If _______=unchecked then
msgbox "Not in readonly mode"
elseif ______=checked then
msgbox "Readonly mode"
end if
What would I put in ________, which is the name for the readonly checkbox in the common dialog for open. Thanks.
Code:If CommonDialog1.Flags <> cdlOFNReadOnly Then
MsgBox "Not in readonly mode"
ElseIf CommonDialog1.Flags = cdlOFNReadOnly Then
MsgBox "Readonly mode"
End If
The code from above doesn't work right. If the flag was set and the checkbox was changed during the open, it doesn't reflect the change. Need more help. Thanks.