Automatically inserting method & function headers from an interface that are being implemented with VB.NET

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Automatically inserting method & function headers from an interface that are being implemented with VB.NET

    When implementing an interface in VB.NET using Visual Studio .NET 2005, it
    would be nice if I could have the method/function headers inserted
    automatically. Whenever we implement an event (such as Button.Click,
    TextBox.TextChanged, etc.), all we have to do is select the control and
    event from the dropdownlists at the top of the editor. Obviously the
    interfaces (IPostBackDataHandler, ICallbackEventHandler, etc.) are not
    listed there, but because some of the interfaces are used rather often and
    the headers must match the ones defined in the interfaces, I would think
    Visual Studio .NET 2005 would have a way to insert them. Is there a way to
    do this? If so, what is it? Thanks.
    --
    Nathan Sokalski
    [email]njsokalski@hotmail.com[/email]
    [url]http://www.nathansokalski.com/[/url]


    Nathan Sokalski Guest

  2. Similar Questions and Discussions

    1. #39403 [NEW]: A class can't implements interface implemented by implemented interface/classes
      From: baldurien at bbnwn dot eu Operating system: Irrelevant PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug...
    2. Inserting flash problem with contribute(strict method)
      I everyone, with contribute 3.11 it is possible to insert a flash movie without the <embed> tag ; or just modify the file location of the flash...
    3. CFC accessor method inserting carriage returns
      I've created a bean type object called userBean. I query a Microsoft SQL Server database and populate the bean object with the data. ...
    4. How do I call an outer function from a class method function?
      I'm sorry guys but this is a bad day for me. I tried researching this one and was totally stonewalled (see...
    5. Sensible Method of Inserting Records In To MySQL
      Hello, I'd appreciate suggestions as I hash out my idea. Perhaps I'm going about this the wrong way. I have users using a third party windows...
  3. #2

    Default Re: Automatically inserting method & function headers from an interface that are being implemented with VB.NET

    Check the code snippets and see if there are any to do what
    you are talking about. If not, you can create your own using
    the Code Snippet editor.

    To see the code snippets, type ? and hit <Tab> in the code
    editor. YOu will get a menu showing a list of types of
    snippets -- just drill down and see if you find one you like.
    If you do, just select it and the code snippet will be
    inserted.

    Note that if you select with the up/down arrows, or hold
    your mouse over the description of the actual snippet,
    it shows a "shortcut". If you type this shortcut into
    the code editor and hit <Tab>, it will insert the code
    for you. For example, property is the shortcut for a
    property.

    Here's the link to a code snippet editor you
    can use to create your own snippets. You can export
    them and make them available to other developers
    if you wish.

    [url]http://msdn2.microsoft.com/en-us/vbasic/ms789085.aspx[/url]

    Good luck.
    Robin S.
    -----------------------------------


    "Nathan Sokalski" <njsokalski@hotmail.com> wrote in message
    news:eFV6MWTDHHA.4832@TK2MSFTNGP06.phx.gbl...
    > When implementing an interface in VB.NET using Visual Studio .NET 2005, it
    > would be nice if I could have the method/function headers inserted
    > automatically. Whenever we implement an event (such as Button.Click,
    > TextBox.TextChanged, etc.), all we have to do is select the control and
    > event from the dropdownlists at the top of the editor. Obviously the
    > interfaces (IPostBackDataHandler, ICallbackEventHandler, etc.) are not
    > listed there, but because some of the interfaces are used rather often and
    > the headers must match the ones defined in the interfaces, I would think
    > Visual Studio .NET 2005 would have a way to insert them. Is there a way to
    > do this? If so, what is it? Thanks.
    > --
    > Nathan Sokalski
    > [email]njsokalski@hotmail.com[/email]
    > [url]http://www.nathansokalski.com/[/url]
    >

    RobinS Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139