Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / April 2004

Tip: Looking for answers? Try searching our database.

Customize Event Handler Names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Prewett - 25 Apr 2004 13:54 GMT
Hello all,

Does anyone know where in the system settings I could go to change the name
of the events that get wired up automatically by VS.NET 2003?

For example, in C#, use any method to auto-create an event handler (dbl
click a button, use the tab trick when manually wiring up events), and the
event comes out like this:

PageName_PreRender  -or-   btnLogin_Click

But I don't like this naming convention.  I would rather it be just:

Page_PreRender

Does anyone know where these settings are?

Thanks,
Paul Prewett
Jose Marcenaro - 26 Apr 2004 23:05 GMT
You cannot customize the names generated when you double click on a control
But instead of double clicking you may select the event view of the control
property page (using the button with a lightning) and then on any event
value, type the desired handler name

Regards
Jose.

> Hello all,
>
[quoted text clipped - 15 lines]
> Thanks,
> Paul Prewett

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.