Results 1 to 12 of 12

Thread: had anyone tried yet adding event handlers in vs2003?

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    had anyone tried yet adding event handlers in vs2003?

    u'll have a wonderfull surprise as double tab will not only automaticly put the full delegate as it will create the function for you and scroll down so u can start coding in the moment!

    finally some cool thing in the C# IDE...vb.net IDE is full of cool things that we dont have
    \m/\m/

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Maybe I am missing something, but VS.Net 2002 does that also...

  3. #3

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    no it doesnt! just double checked in vs2002 again and it doesnt do it
    \m/\m/

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Yes this is cool little trick. This also happens when you implements an interface, and when you are overriding. VS will add the outline for all the stuff you have to implement.

    Very cool

    BTW these feature are new to VS.NET 2003.
    Dont gain the world and lose your soul

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Then what do you mean by double tapping? I was assuming you were talking about controls like a button or something. What is it your talking about then?

    Also, where did you get your 2003 upgrade at? I am getting pissed at Amazon because they haven't shipped it yet, and it has been over a week.

  6. #6
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Why did'nt you order from MS hellswraith?
    Dont gain the world and lose your soul

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Because they said they were on back order till the 19th. So I went to amazon and they said it would ship in 2-3 days, so I went for that.... that was a bad idea....lol.

    Oh well. Next week I have a VS.Net 2003 launch event in Salt Lake City I am going to, I can wait a little bit.

  8. #8

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmm DevGrp i didnt know that C# ide did automaticly implement interfaces..ive worked with some in vs.net 2003 and it didnt implement them by itself i think..althogh ive tried with vb.net IDE and yes it does the trick..

    well hellswraith..my vs.net 2003 was given by a friend im a bit too new to afford to buy it anyway

    what i meant in my frist post is make the following:

    Button button = new Button();
    button.Click += //NOW it if u TAB it will put

    button.Click += new System.blablabla //NOW if u tab again it will create the function like

    private void blablabla(args) {
    }

    edit: YES devgrp as always u're right if i tab right when i write the interface name it will put the things as regions..it rox
    Last edited by PT Exorcist; May 3rd, 2003 at 03:21 PM.
    \m/\m/

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I still would like to know what you are all talking about... It sounds very interesting.

  10. #10
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Ohh, ok, that makes sense. I just thought you were talking about double clicking a button and the IDE doing all the work for you by assigning the eventhandler and such. Cool. Nice to know.

  11. #11

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    now its cool, i've always found a pain in the ass have to put the damn delegates in the events!
    \m/\m/

  12. #12
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    The override feature is a life saver. Before VS.NET 2003, when I want to override a property or a method, I would always do it thru the class view. I would have to drill down thru all those base classes. Now all I have to do in the code editor is type

    protected void override and a list pops up of all the stuff you can override, pressing tab will wire everything up.
    Dont gain the world and lose your soul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width