473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 21 '06 #1
1 1675
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 <Tabin 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.

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

Good luck.
Robin S.
-----------------------------------
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:eF**************@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
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Medi Montaseri | last post by:
Hi, Given a collection of similar but not exact entities (or products) Toyota, Ford, Buick, etc; I am contemplating using the Abstraction pattern to provide a common interface to these products....
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
7
by: Christopher Wells | last post by:
There's something I don't understand about how the CollectionBase class is defined. I can declare: class Derived : CollectionBase { } I can instantiate this Derived class: Derived derived...
17
by: Andreas Huber | last post by:
What follows is a discussion of my experience with .NET generics & the ..NET framework (as implemented in the Visual Studio 2005 Beta 1), which leads to questions as to why certain things are the...
3
by: Trammel | last post by:
Hi, I recently upgraded to VB.net from VB6.. and woah... I feel lost :¬O One of my reasons for upgrading is I was told that VB.net can do class inheritance and subclassing easier. ...
6
by: keith.thornhill | last post by:
hi all, lets say i have a usercontrol which implements a custom interface. like so: ------------------------------------------------- interface IMyInterface sub buttonClick() end interface
1
by: Nathan Sokalski | last post by:
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...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
5
by: Mercdev | last post by:
I have an ActiveX control inherited from UserControl. This control is hosted in IE(version 6 or later). How i can navigate IE from this control. I know that i need to obtain IWebBrowser2 interface...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.