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
Visual Basic.NET.NET ProgrammingProgramming

Avatar of undefined
Last Comment
Jacques Bourgeois (James Burger)
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
RIAS
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo