Coide complete issues?

  • Thread starter Thread starter Kerry Sanders
  • Start date Start date
K

Kerry Sanders

I am seeing some weird behavior in the editor and with code completion. I wrote
the following code just a few minutes ago:

private void menuItem1_Click(object sender, System.EventArgs e)
{
SaveFileDialog sf = new SaveFileDialog();
sf.DefaultExt = "xls";
sf.InitialDirectory =
Environment.GetFolderPath(Environment.SpecialFolder.Personal);
}


On the last line, when I type "Environment" and hit the period, I do not see
SpecialFolder in the code complete list. This code compiles just fine. That
surprised me. When I hover over the code on Personal in the last line, I do not
see a balloon tip with information about it either.

Does anybody have any ideas as to what might be up with this? By the way, under
the C# options, I have "Hide Advanced Members" unchecked.
 
As best I can tell, its an annoying oversight in intellisense, the IDE
intellisense doesn't seem to work very well with nested classes or enums.
Its something I hope for in Whidbey (I just had that problem the other day
too).
 
Hi Kerry,

Thanks for your posting.
Base on my understanding, your problem related to the intellisense.
But in my test application, I can not reproduce your problem. As I typed
Environment with "." then the intellisense will show up, and i choose
SpecialFolder.
Can you give me some steps to reproduce the problem? Thanks

Also, normally, the intellisense will generate when you press "." after an
object. If it does not show up, you may try to press Ctrl+J to force it to
show up .
You can try if this works

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Kerry Sanders <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Coide complete issues?
| Reply-To: (e-mail address removed)
| Message-ID: <[email protected]>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 20
| X-Trace:
ofjmidbaofeaohdodbdpiflmbcekedmfhojhikkbagflhcboopdbncmpkanagmbggjbeemledeon
conkghdcopgoocdmbhomhgelcadcmifccdnmbgjhmnnmpgicogmajhmjkkmjlgieikdnmldjhobp
hegcgdfo
| NNTP-Posting-Date: Sat, 08 Nov 2003 22:01:09 EST
| Date: Sat, 08 Nov 2003 21:02:09 -0600
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!news-xfer2.atl.newshosting.com!63.
218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!38.144.126
..75.MISMATCH!feed1.newsreader.com!newsreader.com!rip!news.webusenet.com!peer
01.cox.net!cox.net!bigfeed.bellsouth.net!bignumb.bellsouth.net!news.bellsout
h.net!bignews6.bellsouth.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197693
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I am seeing some weird behavior in the editor and with code completion.
I wrote
| the following code just a few minutes ago:
|
| private void menuItem1_Click(object sender, System.EventArgs e)
| {
| SaveFileDialog sf = new SaveFileDialog();
| sf.DefaultExt = "xls";
| sf.InitialDirectory =
| Environment.GetFolderPath(Environment.SpecialFolder.Personal);
| }
|
|
| On the last line, when I type "Environment" and hit the period, I do not
see
| SpecialFolder in the code complete list. This code compiles just fine.
That
| surprised me. When I hover over the code on Personal in the last line, I
do not
| see a balloon tip with information about it either.
|
| Does anybody have any ideas as to what might be up with this? By the
way, under
| the C# options, I have "Hide Advanced Members" unchecked.
|
|
 
Sorry... emailed this first try instead of posting it here for everyone.

======
Yes, sorry... I should have said Intellisense instead of code complete. :)

Anyway, there is nothing special in my code as I posted it in the first message.
The help entry for the System.Environment class does not even have SpecialFolder
in the listing in my MSDN October 2003 library. This is truly weird.

As mentioned, I type Environment, hit the period "." and I do not see
SpecialFolder in the Intellisense list that pops up. The code that I posted
compiles and operate properly, however.

This is weird. I just tried this in a new application and it works perfectly.
I am not sure what is so special about my particular application that I am
working on. It is just a Windows form class that I am currently working with.
I have the code in the click event for a context menu item.
 
Kerry Sanders said:
Sorry... emailed this first try instead of posting it here for everyone.

======
Yes, sorry... I should have said Intellisense instead of code complete. :)

Anyway, there is nothing special in my code as I posted it in the first message.
The help entry for the System.Environment class does not even have SpecialFolder
in the listing in my MSDN October 2003 library. This is truly weird.

As mentioned, I type Environment, hit the period "." and I do not see
SpecialFolder in the Intellisense list that pops up. The code that I posted
compiles and operate properly, however.

This is weird. I just tried this in a new application and it works perfectly.
I am not sure what is so special about my particular application that I am
working on. It is just a Windows form class that I am currently working with.
I have the code in the click event for a context menu item.

I don't know what it is, but nested enum\class intellisense is rather
flakey. A couple of times now, nested class intellisense will work in
certain files of a project, but not work in others. I don't know what the
problem is, but its not isolated to you it seems.
 
Thanks for the post. I had heard the same thing from a couple of other people.
Hopefully it will be cleared up in an upcoming update.... if there is one, of
course.
 
Hi Kerry,

As you said, there are no help for Environment.SpecialFolder Enumeration in
your MSDN?
I think this should be the problem of your MSDN, you can find the help for
Environment.SpecialFolder Enumeration at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemenvironmentspecialfolderclasstopic.asp
So it should be in the MSDN.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Kerry Sanders <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Re: Coide complete issues?
| Reply-To: (e-mail address removed)
| Message-ID: <[email protected]>
| References: <[email protected]>
<[email protected]>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 32
| X-Trace:
ofjmidbaofeaohdodbdpiflmbcekedmfhojhikkbagflhcboejbdapadjcjppkcdicabflmaplme
clooghdcopgoocdmbhomakbmolmaljggfkghbgjhmnnmpgicogmadfpogmghmgbgbgjnmbeclpgg
heoapega
| NNTP-Posting-Date: Mon, 10 Nov 2003 02:11:43 EST
| Date: Mon, 10 Nov 2003 01:12:42 -0600
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!tiscali!newsfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.t
ele.dk!newsfeed.news2me.com!cyclone1.gnilink.net!peer01.cox.net!cox.net!bigf
eed.bellsouth.net!bignumb.bellsouth.net!news.bellsouth.net!bignews6.bellsout
h.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197912
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Sorry... emailed this first try instead of posting it here for everyone.
|
| ======
| Yes, sorry... I should have said Intellisense instead of code complete.
:)
|
| Anyway, there is nothing special in my code as I posted it in the first
message.
| The help entry for the System.Environment class does not even have
SpecialFolder
| in the listing in my MSDN October 2003 library. This is truly weird.
|
| As mentioned, I type Environment, hit the period "." and I do not see
| SpecialFolder in the Intellisense list that pops up. The code that I
posted
| compiles and operate properly, however.
|
| This is weird. I just tried this in a new application and it works
perfectly.
| I am not sure what is so special about my particular application that I am
| working on. It is just a Windows form class that I am currently working
with.
| I have the code in the click event for a context menu item.
|
|
|
| >Thanks for your posting.
| >Base on my understanding, your problem related to the intellisense.
| >But in my test application, I can not reproduce your problem. As I typed
| >Environment with "." then the intellisense will show up, and i choose
| >SpecialFolder.
| >Can you give me some steps to reproduce the problem? Thanks
| >
| >Also, normally, the intellisense will generate when you press "." after
an
| >object. If it does not show up, you may try to press Ctrl+J to force it
to
| >show up .
| >You can try if this works
|
|
 
Hi Kerry,

Thanks for your feedback.
I have done the test for you, but it seems that this problem can not always
be reproduced out.
I think you'd better provide your feedback to our product team, then they
will review your suggest and add improvement for you.
The address is: http://register.microsoft.com/mswish/suggestion.asp
also, you can email to: (e-mail address removed)
Thanks for your understanding

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Kerry Sanders <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Re: Coide complete issues?
| Reply-To: (e-mail address removed)
| Message-ID: <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<#[email protected]>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 10
| X-Trace:
bhmkggakljkaanefdbdpiflmbcekedmfhojhikkbagflhcboajaepckdkpkccnlfloekbkljbbgh
lbloghdcopgoocdmbhomakbmolmaljggfkghbgjhmnnmpgicogmaglnifphkbgkgpojmcoceakhb
pkdndkgj
| NNTP-Posting-Date: Mon, 10 Nov 2003 19:53:06 EST
| Date: Mon, 10 Nov 2003 18:54:47 -0600
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!opentransit.net!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.g
nilink.net!peer01.cox.net!cox.net!bigfeed.bellsouth.net!bignumb.bellsouth.ne
t!news.bellsouth.net!bignews3.bellsouth.net.POSTED!2219e5d8!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198227
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Thanks for the post. I had heard the same thing from a couple of other
people.
| Hopefully it will be cleared up in an upcoming update.... if there is
one, of
| course.
|
|
| >I don't know what it is, but nested enum\class intellisense is rather
| >flakey. A couple of times now, nested class intellisense will work in
| >certain files of a project, but not work in others. I don't know what the
| >problem is, but its not isolated to you it seems.
|
|
 
That's right. In the October 2003 MDSN release, which I have installed here
from DVD, does not show the SpecialFolder enumeration on the members page for
the Environment class.

The breakdown of the Environment.SpecialFolder enumeration is in the
documentation and I can find that if I just do an index look up for
"SpecialFolder".

You just can't get to it if you go in through the Environment class help page.
 
Hi Kerry,

Ok, I see what you concern.
The Environment.SpecialFolder Enumeration is in the same hierarchy as the
Environment, while not the member of Environment class.
This is because the SpecialFolder Enumeration is not a member of
Environment, while it is consts set associated with Environment class.
In MSDN class hierarchy, there are many classes like this. Such as
UriFormatException Class and UriHostNameType Enumeration, UriPartial
Enumeration.

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Kerry Sanders <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Re: Coide complete issues?
| Reply-To: (e-mail address removed)
| Message-ID: <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 33
| X-Trace:
ldjgbllpbapjglppdbdpiflmbcekedmfhojhikkbagflhcbokcpkjlfjgailknijloekbkljbbgh
lbloghdcopgoocdmbhompfaamkfakhgalebkbgjhmnnmpgicogmaaldpmedbmhjhpcjpkadijkkn
aadkglbf
| NNTP-Posting-Date: Tue, 11 Nov 2003 01:34:56 EST
| Date: Tue, 11 Nov 2003 00:37:26 -0600
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.gigane
ws.com!nntp.giganews.com!cyclone1.gnilink.net!peer01.cox.net!cox.net!bigfeed
..bellsouth.net!bignumb.bellsouth.net!news.bellsouth.net!bignews5.bellsouth.n
et.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198263
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| That's right. In the October 2003 MDSN release, which I have installed
here
| from DVD, does not show the SpecialFolder enumeration on the members page
for
| the Environment class.
|
| The breakdown of the Environment.SpecialFolder enumeration is in the
| documentation and I can find that if I just do an index look up for
| "SpecialFolder".
|
| You just can't get to it if you go in through the Environment class help
page.
|
|
|
|
| On Tue, 11 Nov 2003 05:16:58 GMT, (e-mail address removed) ("Jeffrey
| Tan[MSFT]") wrote:
|
| >
| >Hi Kerry,
| >
| >As you said, there are no help for Environment.SpecialFolder Enumeration
in
| >your MSDN?
| >I think this should be the problem of your MSDN, you can find the help
for
| >Environment.SpecialFolder Enumeration at:
|
/
| >frlrfsystemenvironmentspecialfolderclasstopic.asp
| >So it should be in the MSDN.
| >
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and confers no
rights.
|
|
 
Back
Top