469,568 Members | 1,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Disable Auto Event Creation on Double-Click (VS2005)

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?
Nov 30 '07 #1
2 1306
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.
<ri***********@gmail.comwrote in message
news:f5**********************************@b15g2000 hsa.googlegroups.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?
Dec 1 '07 #2

<ri***********@gmail.comwrote in message
news:f5**********************************@b15g2000 hsa.googlegroups.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?

Dec 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Manlio Perillo | last post: by
reply views Thread by rawCoder | last post: by
9 posts views Thread by junlia | last post: by
reply views Thread by John Grandy | last post: by
2 posts views Thread by khng | last post: by
2 posts views Thread by Ryan Liu | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.