Hint about method arguments in VS 2005

Hello :)

I have a class with constructor with many arguments.

I create new instance of this class, how can I make VS 2005 to give me a hint about arguments used by class I am currently creating?

thx

panJacek
panJacekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Meir RivkinFull stack Software EngineerCommented:
do u mean intellisense?
which IDE ru using?
0
Fernando SotoRetiredCommented:
As you are typing IntellaSense should be displaying information about what it is expecting next such as parameter name and type.
0
Fernando SotoRetiredCommented:
If IntelliSense is not displaying go to the main menu Tools->Options... and when the Options dialog is displayed look for IntelliSense as shown in the image below, VS 2008, but it should be some what the same in other versions.
ScreenShot003.png
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

TribmosCommented:
At the method header start typing
///
This should fill out a huge block of text.  See example below
/// <summary>
/// Adds an environment to the handler, throws exception if no more environments can be added
/// </summary>
/// <param name="environmentName">the name of the environment</param>
/// <param name="envType">enumerator for the type of environment</param>
public static int addEnvironment(string environmentName, environmentType envType)
{ code! }

Open in new window

0
panJacekAuthor Commented:
The problem appears when I have wrong set of parameters typed for selected method.

I get red underscored in red and no (known to me) way to get the proper list of parameters displayed.

panJacek
0
panJacekAuthor Commented:
... I get LINE underscored in red and no (known to me) way to get the proper list of parameters displayed.
0
Fernando SotoRetiredCommented:
To your statement, "I get LINE underscored in red", The line is incorrectly formatted. Make sure that you spelled all the variable names correct.
0
TribmosCommented:
Or possibly the type of variable your passing in does not match any of the possible functions.  This can happen sometimes with numerical values (listed decimal, but passing int or vice versa) You may have to do a typecast or convert on it.

Also check your scope modifiers  (public, protected, private, etc) you may have the wrong one on the function your wanting to reference.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
panJacekAuthor Commented:
I know why I get red underscoring line!

The problem is that after I get it, it is not possible to get a hint about proper variable types required for selected method.
0
Fernando SotoRetiredCommented:
This is correct, if you have and error in the syntax then IntelliSense will not be able to correctly gives what comes next, you need to go to the first red underline and correct it before IntelliSense will work correctly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.