473,396 Members | 1,886 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,396 software developers and data experts.

IntelliSense question

Hi,

is there a way to hide inherited methods from the IntelliSense-menu in
VS2005?

Lets say that i have the following:

internal class MyClass {
public const int MAX_COUNT = 10;
}

When i write in the ditor "MyClass." menu pops up with the following items

Equals
MAX_COUNT
ReferenceEquals

Is there a way to hide the Equals and ReferenceEquals, by using some
attribute or something?
thx
Kimmo
Oct 25 '06 #1
1 1821
Hi Kimmo,

The following works as long as MyClass is declared in another project. i.e.,
Intellisense seems to ignore EditorBrowsableAttribute on classes within the
current project, but it works when using a class from an external assembly.

public class MyClass
{
[System.ComponentModel.EditorBrowsable(EditorBrowsa bleState.Never)]
public static new bool Equals(object objA, object objB)
{
return Object.Equals(objA, objB);
}

[System.ComponentModel.EditorBrowsable(EditorBrowsa bleState.Never)]
public static new bool ReferenceEquals(object objA, object objB)
{
return Object.ReferenceEquals(objA, objB);
}

public const int MAX_COUNT = 10;
}
I'm not sure how important it is that you keep MyClass internal, but that
wouldn't work in this scenario.

--
Dave Sexton

"Kimmo Laine" <re******@newsgroup.onlywrote in message
news:er****************@TK2MSFTNGP02.phx.gbl...
Hi,

is there a way to hide inherited methods from the IntelliSense-menu in
VS2005?

Lets say that i have the following:

internal class MyClass {
public const int MAX_COUNT = 10;
}

When i write in the ditor "MyClass." menu pops up with the following items

Equals
MAX_COUNT
ReferenceEquals

Is there a way to hide the Equals and ReferenceEquals, by using some
attribute or something?
thx
Kimmo

Oct 25 '06 #2

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

Similar topics

2
by: Nick Kafenzakis | last post by:
Hi, I am thinking about creating some custom server controls in Visual Studio .NET 2003 using VB.NET. One thing I am wondering about is how I can get the control to show up in the IDE....for...
1
by: dan | last post by:
I am working in C#. I want to know how I can get the extras to show up on the intellisense mouseovers. I get a name and type of the property like private string textbox.font But I do not get...
1
by: Greg McIntire | last post by:
Hello all, I have, what I hope, is a relatively quick question. I've made a shared add-in in VS.NET 2003 to be used in Excel XP. The add-in exposes an optimization process that can be...
0
by: cody | last post by:
if i have an enum say Color and i type Color:: intellisense pops up with a list of the members of this enum. but the problem is when i write Color::Red for example i get an error. is this a bug in...
9
by: Ulf Lindback | last post by:
Hi! We have an application surveillance product with a number of API's for different languages; one of them is a C API. Now I wonder how we can supply intellisense to our Visual Studio.Net...
6
by: MattB | last post by:
Hi all, not exactly a asp.net question, but I'm sure you people know this one. I'm just not sure what to look for in help, because it's sure to be in there too. I'm creating a reusable class...
3
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
It's perhaps not the end of the World, but I find it annoying that I lose IntelliSense when I reference Subs and Functions I have moved to an #Included file. Does anyone know of a reasonable way...
5
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...
4
by: Robot | last post by:
Hi all, My IntelliSense in VS2005 hasn't been working with WTL 8 classes. The project compiles fine but whenever I type SomeWTLClass. or SomeWTLClass-it does not work. The status bar...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.