Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Disable double click on OpenFileDialog+vb.net windows programming

Hi,
How do I disable double click on OpenFileDialog?

Cheers
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

I dont think there is a built in way of achieving this. You would have to either inherit the class or create your own form.
Avatar of RIAS

ASKER

Double click fires mouse up event which selects a row from the grid behind it .
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Set the grid Enabled event to False before opening the dialog. It won't accept key events anymore.
Reset the grid Enabled event to True when the dialog is closed.