473,397 Members | 2,084 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,397 software developers and data experts.

Hide Member from Intellisense list

wal
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.

Thanks for any suggestions...

Oct 9 '07 #1
5 3216
On 2007-10-09 12:00, wal wrote:
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.
This has nothing to do with C++ or Win32 programming and is thus off-
topic in both the groups you have posted to. Ask your question in a
group discussing the VC++ IDE, such as microsoft.public.vc.ide_general.

--
Erik Wikström
Oct 9 '07 #2
wal
On Oct 9, 1:35 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-10-09 12:00, wal wrote:
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.

This has nothing to do with C++ or Win32 programming and is thus off-
topic in both the groups you have posted to. Ask your question in a
group discussing the VC++ IDE, such as microsoft.public.vc.ide_general.

--
Erik Wikström
Dear Steinbach, thanks for your reply but this is actually not what I
was asking about, my question was about Intellisense, I want some
members not to show in Intellisense.

Dear Erik, actually I was expecting there's a keyword that you prefix
to the member and it does exactly this (ie. remove a member from the
Intellisense list), this is why I posted in this news group. Besides,
my question has nothing to do with the IDE, i'm not trying to change
the options of visual studio, I want to do it from code...

Oct 9 '07 #3
On 2007-10-09 14:00, wal wrote:
On Oct 9, 1:35 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
>On 2007-10-09 12:00, wal wrote:
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.

This has nothing to do with C++ or Win32 programming and is thus off-
topic in both the groups you have posted to. Ask your question in a
group discussing the VC++ IDE, such as microsoft.public.vc.ide_general.

--
Erik Wikström

Dear Steinbach, thanks for your reply but this is actually not what I
was asking about, my question was about Intellisense, I want some
members not to show in Intellisense.

Dear Erik, actually I was expecting there's a keyword that you prefix
to the member and it does exactly this (ie. remove a member from the
Intellisense list), this is why I posted in this news group. Besides,
my question has nothing to do with the IDE, i'm not trying to change
the options of visual studio, I want to do it from code...
IntelliSense is not part of either the C++ language or C++/CLR, it is
all in the IDE, and thus a newsgrups for the IDE is what you want. There
are no keywords or such that can be used to control IntelliSense since
it works by parsing the code and using the representation to give you
hints. In your case (since I believe that you are programming in C++/CLR
or managed C++) the code is first compiled to the CLR and the metadata
is then used by IntelliSense, in CLR there are no properties, they are
translated into a get and a set method along with a variable to hold the
data, which is why you see those in IntelliSence.

Using a newer version of VS and using the property keyword instead of
declspec will give you a smarter version of IntelliSense that knows that
those functions and the variable belongs to a property and will only
show you this. Note however that this is not topical in c.l.c++ since it
concerns C++/CLR and not C++.

--
Erik Wikström
Oct 9 '07 #4
wal
On Oct 9, 2:48 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-10-09 14:00, wal wrote:
On Oct 9, 1:35 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-10-09 12:00, wal wrote:
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.
This has nothing to do with C++ or Win32 programming and is thus off-
topic in both the groups you have posted to. Ask your question in a
group discussing the VC++ IDE, such as microsoft.public.vc.ide_general.
--
Erik Wikström
Dear Steinbach, thanks for your reply but this is actually not what I
was asking about, my question was about Intellisense, I want some
members not to show in Intellisense.
Dear Erik, actually I was expecting there's a keyword that you prefix
to the member and it does exactly this (ie. remove a member from the
Intellisense list), this is why I posted in this news group. Besides,
my question has nothing to do with the IDE, i'm not trying to change
the options of visual studio, I want to do it from code...

IntelliSense is not part of either the C++ language or C++/CLR, it is
all in the IDE, and thus a newsgrups for the IDE is what you want. There
are no keywords or such that can be used to control IntelliSense since
it works by parsing the code and using the representation to give you
hints. In your case (since I believe that you are programming in C++/CLR
or managed C++) the code is first compiled to the CLR and the metadata
is then used by IntelliSense, in CLR there are no properties, they are
translated into a get and a set method along with a variable to hold the
data, which is why you see those in IntelliSence.

Using a newer version of VS and using the property keyword instead of
declspec will give you a smarter version of IntelliSense that knows that
those functions and the variable belongs to a property and will only
show you this. Note however that this is not topical in c.l.c++ since it
concerns C++/CLR and not C++.

--
Erik Wikström
Dear Erik, actually I'm trying to use properties in native C++ not C++/
CLR but anyway as you said I'm trying my luck in a newsgroup for the
IDE, so thanks anyway .. no hard feelings my friend :)

Oct 10 '07 #5
On 2007-10-10 06:04, wal wrote:
On Oct 9, 2:48 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
>On 2007-10-09 14:00, wal wrote:
On Oct 9, 1:35 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-10-09 12:00, wal wrote:
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 property is Text. I only want Text to show in the intellisense
list, I don't want either getText or setText to show up in the list.
>This has nothing to do with C++ or Win32 programming and is thus off-
topic in both the groups you have posted to. Ask your question in a
group discussing the VC++ IDE, such as microsoft.public.vc.ide_general.
>--
Erik Wikström
Dear Steinbach, thanks for your reply but this is actually not what I
was asking about, my question was about Intellisense, I want some
members not to show in Intellisense.
Dear Erik, actually I was expecting there's a keyword that you prefix
to the member and it does exactly this (ie. remove a member from the
Intellisense list), this is why I posted in this news group. Besides,
my question has nothing to do with the IDE, i'm not trying to change
the options of visual studio, I want to do it from code...

IntelliSense is not part of either the C++ language or C++/CLR, it is
all in the IDE, and thus a newsgrups for the IDE is what you want. There
are no keywords or such that can be used to control IntelliSense since
it works by parsing the code and using the representation to give you
hints. In your case (since I believe that you are programming in C++/CLR
or managed C++) the code is first compiled to the CLR and the metadata
is then used by IntelliSense, in CLR there are no properties, they are
translated into a get and a set method along with a variable to hold the
data, which is why you see those in IntelliSence.

Using a newer version of VS and using the property keyword instead of
declspec will give you a smarter version of IntelliSense that knows that
those functions and the variable belongs to a property and will only
show you this. Note however that this is not topical in c.l.c++ since it
concerns C++/CLR and not C++.

--
Erik Wikström

Dear Erik, actually I'm trying to use properties in native C++ not C++/
CLR but anyway as you said I'm trying my luck in a newsgroup for the
IDE, so thanks anyway .. no hard feelings my friend :)
IF you want properties in native C++ then you are doomed to failure,
since there are not such thing as properties in C++.

--
Erik Wikström
Oct 10 '07 #6

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

Similar topics

8
by: Flare | last post by:
Hi Im creating an Assembli with serval class's wich only contents is static properties. (Im using this class to access global Connections string and.etc. Is all good. But to simplify th euse...
3
by: Rita | last post by:
Hi everybody, I am a Newbie in C#. My problem is that when I am writing code for an object in Visual Studio .NET, I cant get the members popup window after the dot (i.e. "object._") as in Visual...
2
by: Ron | last post by:
Hello, Is there intellisense for vb.net dll's? Here is a simple dll I wrote which I invoke in MS Access. Note: I set the build property to include registration for Com Interop = True:...
3
by: Just D. | last post by:
Who remember how can I disable the intellisense for one class member only? I remember that it was a special tag making the class member invisible, excluding it from the drop-down list showing by...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
64
by: Bayazee | last post by:
hi can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! do you...
114
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for...
10
by: roberto | last post by:
I'm to deploy a .NET DLL which internally communicates with the WS. I don't want others to see internal complexity of the web service classes generated by "Add a Web reference" VS option. As a...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.