Hi,
I'm slowly moving from VB.Net to C#.
When using VB.Net in Visual Studio (for Windows and Web Forms) the code
window identifies a set of '(Overrides)'. I am unable to locate and such
IDE/Intellisense help for this in C#. Is it there?
Thanks,
Simon 5 2027
"Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl... Hi,
I'm slowly moving from VB.Net to C#.
When using VB.Net in Visual Studio (for Windows and Web Forms) the code window identifies a set of '(Overrides)'. I am unable to locate and such IDE/Intellisense help for this in C#. Is it there?
I am not entirely sure what you mean, could you elaborate a little?
Unfortunatly I have little experiance with the VB IDE.
If you simply want override intellisense, typing override will bring up a
list of overridable members.
When in the VS code window for VB.Net the top left combo has an
'(Overrides)' entry which, when selected, populates the top right combo with
a list of overridable members. Selecting one of these populates code window
with 'stub' override and correct parameters. Fill in the body from here...
From your answer below I tried typing override in a c# code window (ASP and
Windows) and intellisense was not limited to a list of overridable members.
In fact, such members were not even present in the list.
Can you help further? Thanks.
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:uL******** ******@TK2MSFTN GP15.phx.gbl... "Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message news:uX******** ******@tk2msftn gp13.phx.gbl... Hi,
I'm slowly moving from VB.Net to C#.
When using VB.Net in Visual Studio (for Windows and Web Forms) the code window identifies a set of '(Overrides)'. I am unable to locate and such IDE/Intellisense help for this in C#. Is it there?
I am not entirely sure what you mean, could you elaborate a little? Unfortunatly I have little experiance with the VB IDE.
If you simply want override intellisense, typing override will bring up a list of overridable members.
"Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. When in the VS code window for VB.Net the top left combo has an '(Overrides)' entry which, when selected, populates the top right combo with a list of overridable members. Selecting one of these populates code window with 'stub' override and correct parameters. Fill in the body from here...
From your answer below I tried typing override in a c# code window (ASP and Windows) and intellisense was not limited to a list of overridable members. In fact, such members were not even present in the list.
It should be limited, which version of VS are you using?
The intellisense doesn't include overridable members that already *have*
been overridden, however.
Anyway, I don't think there is anything like that directly in the code
window. You can use the override intellisense or perhaps the class viewer, I
believe.
Thanks.
Using the Class Viewer works for me. Right click the relevant member and
choose Add from the context menu.
My version of 'Microsoft Development Environment' is 7.0.9466. Obtained in
VS-->Help-->About.
This is far more involved than the VB code window integration with IDE,
especially when C# events are obtained using the 'Lightrning' icon on the
proerties window. In the VB code window all ovverrides and base class events
are accessed using the top left/right combo boxes. Just out of interest, do
you know why the easier VB approach was not adopted for C#?
Thanks again for the pointers.
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. "Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. When in the VS code window for VB.Net the top left combo has an '(Overrides)' entry which, when selected, populates the top right combo with a list of overridable members. Selecting one of these populates code window with 'stub' override and correct parameters. Fill in the body from here...
From your answer below I tried typing override in a c# code window (ASP and Windows) and intellisense was not limited to a list of overridable members. In fact, such members were not even present in the list.
It should be limited, which version of VS are you using? The intellisense doesn't include overridable members that already *have* been overridden, however.
Anyway, I don't think there is anything like that directly in the code window. You can use the override intellisense or perhaps the class viewer, I believe.
"Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl... Thanks.
Using the Class Viewer works for me. Right click the relevant member and choose Add from the context menu.
My version of 'Microsoft Development Environment' is 7.0.9466. Obtained in VS-->Help-->About.
Ahh, I see, VS2002 then?
I was testing on 2003, which might explain why override intellisense works
for me. I don't recall waht 2002 was like, except that it was pretty bad all
in all.
This is far more involved than the VB code window integration with IDE, especially when C# events are obtained using the 'Lightrning' icon on the proerties window. In the VB code window all ovverrides and base class events are accessed using the top left/right combo boxes. Just out of interest, do you know why the easier VB approach was not adopted for C#?
Off hand I can't say, except that the dev team simply didn't chose to put
time into that feature. I don't personally consider the dropdown boxes to be
easy. I like to have everything available from the keyboard(atleas t within
one file, navigating with the keyboard can be a pain).
There are a few things, like events, that simply won't work in C# the way
they do in VB. There is no handles clause, so the IDE can't simply determine
which methods handle which events as easily as VB can with
WithEvents+Hand les. It is probably possible, but to this point not something
that is worth the effort.
Thanks again for the pointers.
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. "Simon" <si**********@N O.SPAMiprimus.c om.au> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. When in the VS code window for VB.Net the top left combo has an '(Overrides)' entry which, when selected, populates the top right combo with a list of overridable members. Selecting one of these populates code window with 'stub' override and correct parameters. Fill in the body from here...
From your answer below I tried typing override in a c# code window (ASP and Windows) and intellisense was not limited to a list of overridable members. In fact, such members were not even present in the list.
It should be limited, which version of VS are you using? The intellisense doesn't include overridable members that already *have* been overridden, however.
Anyway, I don't think there is anything like that directly in the code window. You can use the override intellisense or perhaps the class viewer, I believe.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: andrew.queisser |
last post by:
Yesterday I typed in some C++ code that called a function with two
ints. Intellisense (auto-complete) helpfully told me that the first
formal parameter was called "frontLight" and the second "ringLight". It
occurred to me that I'm getting some semantic help here on top of the
obvious type safety. It seems to me that the existance of this kind of
support is tied to the static typing nature of C++.
I've always been interested in the...
|
by: Stefan Kronberg |
last post by:
I'm working on a solution containing about 20 projects. Some of the projects
contain class definitions that are used in other of the projects. Most of
the time intellisense is working ok, i.e. if I work with objects declared
from my own classes intellisense will show me all alternatives (methods and
properties from my classes and from the classes they are derived from). But
sometimes I will get nothing from intellisense, completely nothing,...
|
by: Stephan Brunner |
last post by:
Hi
VS 2003 used to have an (Overrides) entry in the left dropdown of the code
editor.
Where has this handy feature gone in VS 2005?
|
by: Surrealist |
last post by:
I need something likes as when I create an event procedure.
I can use top-left and top-right dropdown list of code editor
to select object and its exposed events respectively.
Then, the IDE, automatically paste the function
header (signature) for me.
But I can't find a way to see list of Sub or Function
that I can overrides such as ToString Function.
|
by: Bob |
last post by:
Just some thoughts:
1. Overridable subs overridden in a base class should not be hidden from
selection so you have to guess what's there and type out the whole signature
manually (this really bugs me).
2. Mousing over a method's name where it is overridden should show
intellisense so messages like "be sure to call the base method when
overriding..." are readily available.
| |
by: Jason Kendall |
last post by:
Why is it that there doesn't appear to be an easy way to select what
overridable method you want to override from the IDE as you could in
VS2003?
Used to, you could select (Overrides) for your class from the dropdown
at the top of the IDE, on the left, and then pick from a list of
overrides on the right.
I've not done much in VS2005 yet, but every time I need to override a
method, I go to my dropdown lists and they're not there, so I...
|
by: A Wieser |
last post by:
I created a new Windows Forms Application, with a blank form.
The first thing I want to do is override OnPaint, and draw a line across the
window.
I can't for the life of me figure out how I'm supposed to do this with
Visual Studio.
If I go to the class view, and click on form1 a bunch of properties show up
for the form, but if I click on either the events button in the properties
|
by: wal |
last post by:
Hello,
I'm using __declspec(property) to access get/set methods as properties
(like in C# and VB.NET). Now, the problem is that both the property
name and the get/set methods show in the intellisense list. Is there
anyway to remove the names of the get/set methods from the
intellisense list?
Here's an example, I have two methods, one is a get method with the
name getText and another set method with the name setText, the name of
the...
|
by: Travis |
last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the
Intellisense for that program. I went to try Visual Basic, and the
intellisense is so much different. I'll try to make an example:
Say I want to write: MessageBox.Show("Hi there")
In C#, once I type just a single "M," everything (objects, classes,
everything) that begins with M will appear in the intellisense list. Once
you get to "Mes" MessageBox will be selected...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |