Remove the Read-only Checkbox from a Common Dialog Control

To remove the read-only checkbox from a common dialog control, add the following constant declaration to the module:

Global Const OFN_HIDEREADONLY = &H4&

Then, while calling the common dialog, write the following code:

Private Sub Command1_Click()   CommonDialog1.Flags=OFN_HIDEREADONLY   CommonDialog1.ShowOpenEnd Sub

When the Open File dialog box opens, it won’t have the read-only checkbox.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist