Disable Auto Event Creation on Double-Click (VS2005)

Disable Auto Event Creation on Double-Click (VS2005)

am 30.11.2007 22:49:32 von 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?

Re: Disable Auto Event Creation on Double-Click (VS2005)

am 01.12.2007 13:27:35 von Bob

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.


wrote in message
news:f56d53a1-f458-48eb-b3e3-d24a0bb6b9a9@b15g2000hsa.google groups.com...
> 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?

Re: Disable Auto Event Creation on Double-Click (VS2005)

am 01.12.2007 17:07:07 von MR. Arnold

wrote in message
news:f56d53a1-f458-48eb-b3e3-d24a0bb6b9a9@b15g2000hsa.google groups.com...
> 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?