Ordering the event handlers

D

Dom

I'm teaching myself c#, but I have a VB background.

I noticed that c# just inserts the event handlers into you code in the
order in which you create them, unlike VB which always sorted them.
VB had a good approach, since all the events for btnNext, eg, were in
the same place.

Is there a way to get C# to do this? Also, can I somehow specify that
all events should be placed in the same region/

TIA,
Dom
 
N

Nicholas Paldino [.NET/C# MVP]

Dom,

There is no way to do this, except to move it yourself.

Isn't this essentially the same question you asked two posts up?
 
D

Dom

Sorry about the multiple posting. Something is wrong with the
newsgroup or my connection. I posted the first question, and 5 hours
later it didn't appear, so I thought it got "lost" and I posted it a
second time.

Dom

Dom,

There is no way to do this, except to move it yourself.

Isn't this essentially the same question you asked two posts up?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I'm teaching myself c#, but I have a VB background.
I noticed that c# just inserts the event handlers into you code in the
order in which you create them, unlike VB which always sorted them.
VB had a good approach, since all the events for btnNext, eg, were in
the same place.
Is there a way to get C# to do this? Also, can I somehow specify that
all events should be placed in the same region/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top