473,666 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1839
Hi Kimmo,

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

public class MyClass
{
[System.Componen tModel.EditorBr owsable(EditorB rowsableState.N ever)]
public static new bool Equals(object objA, object objB)
{
return Object.Equals(o bjA, objB);
}

[System.Componen tModel.EditorBr owsable(EditorB rowsableState.N ever)]
public static new bool ReferenceEquals (object objA, object objB)
{
return Object.Referenc eEquals(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******@newsg roup.onlywrote in message
news:er******** ********@TK2MSF TNGP02.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
2584
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 example right now when I hit '<' i get a list of controls like <asp:(somecontrols)>. I was wondering if there is a way so that when i hit '<' I will also get a list like <mycompany:(mycustomcontrols)>. Any pointers or documentation would be...
1
1657
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 the extra description like many of the built in controls. Where is this stored and how do I modify it. //does not do it. And I already have it showing up in the property window but I want to be able to mouse over a property or method in the...
1
1710
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 conducted from Excel VBA (currently have no desire to make a more formal UI).
0
828
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 intellisense? i have a second one. is there a reason why intellisense shows me the private members of a class too? does it make sense to expose the private variables? --
9
2677
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 (native C/C++) users (preferably both VS 7.0 and 7.1). I would like to have something like the parameter info you get for e.g. printf when you enter the opening parenthesis, printf(
6
1742
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 library and I want to be able to add usage remarks that would show up in Intellisense when the library was being called from elsewhere. How does one add these comments? I'm taking about the stuff that pops in Intellisense that says stuff like "Gets...
3
4010
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 to restore the IntelliSense feature in this case? Thanks for your thoughts... Jim Rodgers
5
3239
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...
4
2436
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 changes to: IntelliSense: 'Type of expression to the left of . or -is not class, struct, or union' (see 'Troubleshooting Intellisense in C++ Projects'
11
2208
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: //////////////////////////////////////////////// Public Sub DisplayHyperlinks(ByVal sender As Object, ByVal e As System.Windows.Forms.HtmlElementEventArgs)
0
8869
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
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,...
0
7386
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, 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...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
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();...
0
4198
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...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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
2
1775
bsmnconsultancy
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...

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.