Disable Auto Event Creation on Double-Click (VS2005)

  • Thread starter Thread starter richard.nigro
  • Start date Start date
R

richard.nigro

When you double-click on a control in the designer window, it creates
the 'default' event for that control. Is there any way to disable
this functionality?
 
Do you mean to do this for a control you are writing or in general to
disable the design time feature?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
When you double-click on a control in the designer window, it creates
the 'default' event for that control. Is there any way to disable
this functionality?


Why don't you right-click somewhere on the form and use View Code, if all
you're wanting to do is view/work the code after you place a control on the
form, instead of double-clicking the control, which creates the event and
shows you code?
 
Back
Top