473,545 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Coide complete issues?

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.EventArg s e)
{
SaveFileDialog sf = new SaveFileDialog( );
sf.DefaultExt = "xls";
sf.InitialDirec tory =
Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
}
On the last line, when I type "Environmen t" 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.

Nov 15 '05 #1
9 1336
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).

"Kerry Sanders" <di****@NOSPAMy ahoo.com> wrote in message
news:ne******** *************** *********@4ax.c om...
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.EventArg s e)
{
SaveFileDialog sf = new SaveFileDialog( );
sf.DefaultExt = "xls";
sf.InitialDirec tory =
Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
}
On the last line, when I type "Environmen t" 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.

Nov 15 '05 #2

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 <di****@NOSPAMy ahoo.com>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Coide complete issues?
| Reply-To: di****@NOSPAMya hoo.com
| Message-ID: <ne************ *************** *****@4ax.com>
| 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:
ofjmidbaofeaohd odbdpiflmbceked mfhojhikkbagflh cboopdbncmpkana gmbggjbeemledeo n
conkghdcopgoocd mbhomhgelcadcmi fccdnmbgjhmnnmp gicogmajhmjkkmj lgieikdnmldjhob p
hegcgdfo
| NNTP-Posting-Date: Sat, 08 Nov 2003 22:01:09 EST
| Date: Sat, 08 Nov 2003 21:02:09 -0600
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.i cl.net!newsfeed .fjserv.net!new s-xfer2.atl.newsh osting.com!63.
218.45.10.MISMA TCH!newshosting .com!news-xfer1.atl.newsh osting.com!38.1 44.126
..75.MISMATCH!f eed1.newsreader .com!newsreader .com!rip!news.w ebusenet.com!pe er
01.cox.net!cox. net!bigfeed.bel lsouth.net!bign umb.bellsouth.n et!news.bellsou t
h.net!bignews6. bellsouth.net.P OSTED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1976 93
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.EventArg s e)
| {
| SaveFileDialog sf = new SaveFileDialog( );
| sf.DefaultExt = "xls";
| sf.InitialDirec tory =
| Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
| }
|
|
| On the last line, when I type "Environmen t" 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.
|
|

Nov 15 '05 #3
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.Environm ent 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
SpecialFolde r.
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


Nov 15 '05 #4

"Kerry Sanders" <di****@NOSPAMy ahoo.com> wrote in message
news:sf******** *************** *********@4ax.c om...
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.Environm ent 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 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
SpecialFolde r.
Can you give me some steps to reproduce the problem? Thanks

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

Nov 15 '05 #5
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.


Nov 15 '05 #6

Hi Kerry,

As you said, there are no help for Environment.Spe cialFolder Enumeration in
your MSDN?
I think this should be the problem of your MSDN, you can find the help for
Environment.Spe cialFolder Enumeration at:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemenvi ronmentspecialf olderclasstopic .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 <di****@NOSPAMy ahoo.com>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Re: Coide complete issues?
| Reply-To: di****@NOSPAMya hoo.com
| Message-ID: <sf************ *************** *****@4ax.com>
| References: <ne************ *************** *****@4ax.com>
<T2************ **@cpmsftngxa06 .phx.gbl>
| 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:
ofjmidbaofeaohd odbdpiflmbceked mfhojhikkbagflh cboejbdapadjcjp pkcdicabflmaplm e
clooghdcopgoocd mbhomakbmolmalj ggfkghbgjhmnnmp gicogmadfpogmgh mgbgbgjnmbeclpg g
heoapega
| NNTP-Posting-Date: Mon, 10 Nov 2003 02:11:43 EST
| Date: Mon, 10 Nov 2003 01:12:42 -0600
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!tiscali!ne wsfeed1.ip.tisc ali.net!news.te le.dk!news.tele .dk!small.news. t
ele.dk!newsfeed .news2me.com!cy clone1.gnilink. net!peer01.cox. net!cox.net!big f
eed.bellsouth.n et!bignumb.bell south.net!news. bellsouth.net!b ignews6.bellsou t
h.net.POSTED!no t-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1979 12
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.Environm ent 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
| >SpecialFolde r.
| >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
|
|

Nov 15 '05 #7

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: ms****@microsof t.com
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 <di****@NOSPAMy ahoo.com>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Re: Coide complete issues?
| Reply-To: di****@NOSPAMya hoo.com
| Message-ID: <jq************ *************** *****@4ax.com>
| References: <ne************ *************** *****@4ax.com>
<T2************ **@cpmsftngxa06 .phx.gbl>
<sf************ *************** *****@4ax.com>
<#F************ *@TK2MSFTNGP10. phx.gbl>
| 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:
bhmkggakljkaane fdbdpiflmbceked mfhojhikkbagflh cboajaepckdkpkc cnlfloekbkljbbg h
lbloghdcopgoocd mbhomakbmolmalj ggfkghbgjhmnnmp gicogmaglnifphk bgkgpojmcoceakh b
pkdndkgj
| NNTP-Posting-Date: Mon, 10 Nov 2003 19:53:06 EST
| Date: Mon, 10 Nov 2003 18:54:47 -0600
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new s-out.cwix.com!ne wsfeed.cwix.co
m!opentransit.n et!small1.nntp. aus1.giganews.c om!nntp.giganew s.com!cyclone1. g
nilink.net!peer 01.cox.net!cox. net!bigfeed.bel lsouth.net!bign umb.bellsouth.n e
t!news.bellsout h.net!bignews3. bellsouth.net.P OSTED!2219e5d8! not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1982 27
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.
|
|

Nov 15 '05 #8
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.Spe cialFolder 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, v-*****@online.mi crosoft.com ("Jeffrey
Tan[MSFT]") wrote:

Hi Kerry,

As you said, there are no help for Environment.Spe cialFolder Enumeration in
your MSDN?
I think this should be the problem of your MSDN, you can find the help for
Environment.Sp ecialFolder Enumeration at:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemenv ironmentspecial folderclasstopi c.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.


Nov 15 '05 #9

Hi Kerry,

Ok, I see what you concern.
The Environment.Spe cialFolder 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
UriFormatExcept ion 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 <di****@NOSPAMy ahoo.com>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Re: Coide complete issues?
| Reply-To: di****@NOSPAMya hoo.com
| Message-ID: <bl************ *************** *****@4ax.com>
| References: <ne************ *************** *****@4ax.com>
<T2************ **@cpmsftngxa06 .phx.gbl>
<sf************ *************** *****@4ax.com>
<6j************ **@cpmsftngxa06 .phx.gbl>
| 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:
ldjgbllpbapjglp pdbdpiflmbceked mfhojhikkbagflh cbokcpkjlfjgail knijloekbkljbbg h
lbloghdcopgoocd mbhompfaamkfakh galebkbgjhmnnmp gicogmaaldpmedb mhjhpcjpkadijkk n
aadkglbf
| NNTP-Posting-Date: Tue, 11 Nov 2003 01:34:56 EST
| Date: Tue, 11 Nov 2003 00:37:26 -0600
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!sm all1.nntp.aus1. gigane
ws.com!nntp.gig anews.com!cyclo ne1.gnilink.net !peer01.cox.net !cox.net!bigfee d
..bellsouth.net !bignumb.bellso uth.net!news.be llsouth.net!big news5.bellsouth .n
et.POSTED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1982 63
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.Spe cialFolder 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, v-*****@online.mi crosoft.com ("Jeffrey
| Tan[MSFT]") wrote:
|
| >
| >Hi Kerry,
| >
| >As you said, there are no help for Environment.Spe cialFolder Enumeration
in
| >your MSDN?
| >I think this should be the problem of your MSDN, you can find the help
for
| >Environment.Sp ecialFolder Enumeration at:
|
http://msdn.microsoft.com/library/de...-us/cpref/html

/
| >frlrfsystemenv ironmentspecial folderclasstopi c.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.
|
|

Nov 15 '05 #10

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

Similar topics

11
1785
by: post400 | last post by:
Hi, apparently there is a very famous book that every developer should read: Code complete by Steve McConnell ! Is there an electronic version freely downloadable ? After all, the book was released in 1993 , it should have been public domain by now ! It would be nice to have a try before ! 50€ is not exactly cheap ! What do you think ?...
2
1530
by: Buttercup | last post by:
I have never used xml before and while I have found lots of tutorials and help on the structure of xml and the theory behind it, I can find nothing on how to actually implement it. I want to accept an xml feed from a major tour operator, this will mean ALOT of data. Do I need to parse the xml and then put it into a database? What database...
7
1840
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving" these problems - I'm more interested in isolating them, .i.e. finding a "complete" list of issues. Here's my list of serious issues found so far. By...
3
1137
by: JIM.H. | last post by:
Hello, I used this site to do form authentication http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod17.asp My code successfully comes to the point: if (passwordVerified == true ) { // The user is authenticated // At this point, an authentication ticket is normally created // This can subsequently be used...
7
2157
by: GeorgeAtkins | last post by:
I want to create a web-based form or page that consists of a series of formatted questions and answers. The form will resemble an existing paper form. When the form is filled in, I want the user to submit the form via e-mail and have the complete form with answers sent, not just the data. That is, the recipient should be able to open the...
4
3255
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request onto some stack, where it would continue to be processed asynchronously (most importantly preserving things like view state, form post data, etc). In...
7
5647
by: Arancaytar | last post by:
(Note: I am a Javascript newbie. I can handle PHP and Java, but this is unfamiliar territory.) For a wordcount feature, I need to collect the complete text content of a 'div' element inside a variable. Because of the issues with paragraphs and markup, the content is split into different nodes in the DOM. For example:
7
4515
by: jehugaleahsa | last post by:
I wrote a simple method that allows me to pass a delegate to find a value in a list. I already had a set of methods for doing comparisons: less, greater, equal, equivalent, etc. However, find algorithms always compare the element in the list to a given value. In other words, I needed to bind one value for all the comparisons. I wrote a...
0
7479
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7439
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...
0
7773
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5987
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...
1
5343
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...
0
4962
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...
1
1901
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

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.