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

Intellisense - Autocomplete for fxns with enum-type arguments

Jim
Given a function:

MyFunc( MyEnumType arg)
{
...
}

I have noticed that sometimes (but not consistently over
different functions or classes), that when I call MyFunc()
in code, Intellisense will provide me a list of possible
values to pick from when I type the opening parenthesis of
the function name. However, as I said, this doesn't
always happen with all functions, and sometimes one
argument will auto-populate and others will not. I always
get the dropdown if I start out with

MyFunct( MyEnum. <-Dropdown shows up with MyEnum values

But sometimes simply using a function name and opening
parenthesis offers the values right away, where other
times it does not. Can anyone provide me with some
clarity as to how and when this functioanlity is supported?

Thanks!

JIM
Nov 15 '05 #1
1 2048
VB.NET has the ability to display the list of enumerations automatically, C#
does not. In C#, you always have to specify the enumeration type name
before the list of possible values are displayed.
"Jim" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Given a function:

MyFunc( MyEnumType arg)
{
...
}

I have noticed that sometimes (but not consistently over
different functions or classes), that when I call MyFunc()
in code, Intellisense will provide me a list of possible
values to pick from when I type the opening parenthesis of
the function name. However, as I said, this doesn't
always happen with all functions, and sometimes one
argument will auto-populate and others will not. I always
get the dropdown if I start out with

MyFunct( MyEnum. <-Dropdown shows up with MyEnum values

But sometimes simply using a function name and opening
parenthesis offers the values right away, where other
times it does not. Can anyone provide me with some
clarity as to how and when this functioanlity is supported?

Thanks!

JIM

Nov 15 '05 #2

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

Similar topics

2
by: Ben R. Bolton | last post by:
I have found that Intellisense sometimes works and sometimes doesn't. I have yet to detect a consistant pattern, but have observed that if I define a public enum in one project, that enum is...
40
by: Alex | last post by:
Hello, does anybody know how to turn off the autocomplete feature for a certain text field? I am aware of the "autocomplete" attribute, but I have seen other implementions achieving it...
1
by: Steve Long | last post by:
Anybody know how to make intellisense show a drop down the list of an enum as a method argument like it does for .NET types? Example: public enum eGroupPlacements { GRP_RECORD, GRP_REPORT...
2
by: Ken Durden | last post by:
Is there any way to control ordering of items in intellisense via attributes? For example, I have the following enum: public enum ESeverity { Acceptable, Low, Medium,
3
by: Robin Tucker | last post by:
Hi there, I have this really frustrating problem with Visual Studio (Microsoft Visual Basic .NET 2003 69586-335-0000007-18843). I have got used to using the autocomplete and auto indent...
2
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
1
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
3
by: Rick Palmer | last post by:
Hello all, I have a function I have written that gets Invoices by a date range. It looks something like this: GetInvoicesbyDateRange(ByVal LBound as Date, ByVal UBound as Date, ByVal...
4
by: fdeckerNOSPAMM | last post by:
Hi, If I do this in module myConstants.bas: Global const One = 1 Global const Two = 2 Global const three = 3 Then in my code, all I have to do is: if ThisConstant = myConstants. and when...
2
by: Chuck | last post by:
I am new to programming and Visual Studio so please bare with me. I am using visual studio 2005 intellisense for VB.net...for example when I am doing Console.WriteLine() and it is autocompleting...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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
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,...

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.