Solved

VB.net Windows Forms change default event generated when double clicking a panel

Posted on 2013-01-08
5
295 Views
Last Modified: 2013-01-10
Hi

I have several forms where I need to add code behind the click event of a panel
When I cretae  a fresh Windows form and add a few panels to it then double click ecah one
it generates the Paint event. Is it possible to changea setting so that the click event is generated. I have a few hundred panels to do this to.
Thanks
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:Mohamed_allabakash
ID: 38757984
You can create the User Defined Froms and panels and you can utilize it.
0
 
LVL 2

Expert Comment

by:Mohamed_allabakash
ID: 38757985
You can create the User Defined Forms and panels and you can utilize it
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 38758000
you would have to override the panels class to specify the defaultevent:
http://www.vb-helper.com/howto_net_default_event.html
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 38759436
Work around is to not double click the panel. Just select the panel, then in properties window, double click the Click event and a stub handler will be created for Click event.
0
 

Author Closing Comment

by:Murray Brown
ID: 38762038
Thanks for the advice
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question