PC Review


Reply
Thread Tools Rate Thread

Ampersand query in MenuItem Text, C#

 
 
Neville Lang
Guest
Posts: n/a
 
      20th Sep 2003
Hi all,

On a MenuItem, I want to pass an ampersand so that it displays on the menu
item, as in "Edit & Copy". In the past, I have simply used && as the &
usually allows an underline of the next character. However, in the CF if I
use either one or two ampersands in the text string, no ampersand ever
displays. Does this mean that CF does not allow ampersands in the Text
property of MenuItem or if so, what am I missing?

Regards,
Neville Lang


 
Reply With Quote
 
 
 
 
David So [MSFT]
Guest
Posts: n/a
 
      6th Oct 2003
Neville,

NetCF does not support ampersand in all menuitems, it strips off any
ampersand in menuitem. I'll try to see if there's any work around that you
can show it.

Thanks,
David


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Neville Lang" <(E-Mail Removed)>
| From: "Neville Lang" <(E-Mail Removed)>
| Subject: Ampersand query in MenuItem Text, C#
| Date: Sun, 21 Sep 2003 01:02:02 +1000
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 203.222.147.72
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:33996
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi all,
|
| On a MenuItem, I want to pass an ampersand so that it displays on the menu
| item, as in "Edit & Copy". In the past, I have simply used && as the &
| usually allows an underline of the next character. However, in the CF if I
| use either one or two ampersands in the text string, no ampersand ever
| displays. Does this mean that CF does not allow ampersands in the Text
| property of MenuItem or if so, what am I missing?
|
| Regards,
| Neville Lang
|
|
|

 
Reply With Quote
 
David So [MSFT]
Guest
Posts: n/a
 
      6th Oct 2003
I've confirmed with our developer, ampersand will not be supported at all
in NetCF v1.0, but it would be supported in NetCF v1.0 SP2.

David
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 686887842
| References: <(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (E-Mail Removed) (David So [MSFT])
| Organization: Microsoft
| Date: Mon, 06 Oct 2003 22:36:11 GMT
| Subject: RE: Ampersand query in MenuItem Text, C#
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| Message-ID: <(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Lines: 39
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35277
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Neville,
|
| NetCF does not support ampersand in all menuitems, it strips off any
| ampersand in menuitem. I'll try to see if there's any work around that
you
| can show it.
|
| Thanks,
| David
|
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
| --------------------
| | Reply-To: "Neville Lang" <(E-Mail Removed)>
| | From: "Neville Lang" <(E-Mail Removed)>
| | Subject: Ampersand query in MenuItem Text, C#
| | Date: Sun, 21 Sep 2003 01:02:02 +1000
| | Lines: 13
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <(E-Mail Removed)>
| | Newsgroups: microsoft.public.dotnet.framework.compactframework
| | NNTP-Posting-Host: 203.222.147.72
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.compactframework:33996
| | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| |
| | Hi all,
| |
| | On a MenuItem, I want to pass an ampersand so that it displays on the
menu
| | item, as in "Edit & Copy". In the past, I have simply used && as the &
| | usually allows an underline of the next character. However, in the CF
if I
| | use either one or two ampersands in the text string, no ampersand ever
| | displays. Does this mean that CF does not allow ampersands in the Text
| | property of MenuItem or if so, what am I missing?
| |
| | Regards,
| | Neville Lang
| |
| |
| |
|
|

 
Reply With Quote
 
David So [MSFT]
Guest
Posts: n/a
 
      6th Oct 2003
My Correction.

Ampersand is supported in NetCF v1.0 SP2 but it only supported turning
character with underline. Currently it doesn't support the && parsing. This
would be something we would consider in future version of NetCF.

Thanks,

David
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 686887842
| References: <(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (E-Mail Removed) (David So [MSFT])
| Organization: Microsoft
| Date: Mon, 06 Oct 2003 22:36:11 GMT
| Subject: RE: Ampersand query in MenuItem Text, C#
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| Message-ID: <(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Lines: 39
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35277
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Neville,
|
| NetCF does not support ampersand in all menuitems, it strips off any
| ampersand in menuitem. I'll try to see if there's any work around that
you
| can show it.
|
| Thanks,
| David
|
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
| --------------------
| | Reply-To: "Neville Lang" <(E-Mail Removed)>
| | From: "Neville Lang" <(E-Mail Removed)>
| | Subject: Ampersand query in MenuItem Text, C#
| | Date: Sun, 21 Sep 2003 01:02:02 +1000
| | Lines: 13
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <(E-Mail Removed)>
| | Newsgroups: microsoft.public.dotnet.framework.compactframework
| | NNTP-Posting-Host: 203.222.147.72
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.compactframework:33996
| | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| |
| | Hi all,
| |
| | On a MenuItem, I want to pass an ampersand so that it displays on the
menu
| | item, as in "Edit & Copy". In the past, I have simply used && as the &
| | usually allows an underline of the next character. However, in the CF
if I
| | use either one or two ampersands in the text string, no ampersand ever
| | displays. Does this mean that CF does not allow ampersands in the Text
| | property of MenuItem or if so, what am I missing?
| |
| | Regards,
| | Neville Lang
| |
| |
| |
|
|

 
Reply With Quote
 
Neville Lang
Guest
Posts: n/a
 
      7th Oct 2003
David,

While for the most part, I generally use single words on PPC menus, there
has been a time when I needed to use two words separated by the ampersand
(&) and this is where the "&&" failed. At present my workaround is to use
the word "and" but this makes the string a bit long. Any future help in this
area would be appreciated.

Regards,
Neville Lang



"David So [MSFT]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> My Correction.
>
> Ampersand is supported in NetCF v1.0 SP2 but it only supported turning
> character with underline. Currently it doesn't support the && parsing.

This
> would be something we would consider in future version of NetCF.
>
> Thanks,
>
> David
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> --------------------
> | X-Tomcat-ID: 686887842
> | References: <(E-Mail Removed)>
> | MIME-Version: 1.0
> | Content-Type: text/plain
> | Content-Transfer-Encoding: 7bit
> | From: (E-Mail Removed) (David So [MSFT])
> | Organization: Microsoft
> | Date: Mon, 06 Oct 2003 22:36:11 GMT
> | Subject: RE: Ampersand query in MenuItem Text, C#
> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> | Message-ID: <(E-Mail Removed)>
> | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | Lines: 39
> | Path: cpmsftngxa06.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.compactframework:35277
> | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
> |
> | Neville,
> |
> | NetCF does not support ampersand in all menuitems, it strips off any
> | ampersand in menuitem. I'll try to see if there's any work around that
> you
> | can show it.
> |
> | Thanks,
> | David
> |
> |
> | This posting is provided "AS IS" with no warranties, and confers no
> rights.
> | --------------------
> | | Reply-To: "Neville Lang" <(E-Mail Removed)>
> | | From: "Neville Lang" <(E-Mail Removed)>
> | | Subject: Ampersand query in MenuItem Text, C#
> | | Date: Sun, 21 Sep 2003 01:02:02 +1000
> | | Lines: 13
> | | X-Priority: 3
> | | X-MSMail-Priority: Normal
> | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | | Message-ID: <(E-Mail Removed)>
> | | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | | NNTP-Posting-Host: 203.222.147.72
> | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
> | | Xref: cpmsftngxa06.phx.gbl
> | microsoft.public.dotnet.framework.compactframework:33996
> | | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> | |
> | | Hi all,
> | |
> | | On a MenuItem, I want to pass an ampersand so that it displays on the
> menu
> | | item, as in "Edit & Copy". In the past, I have simply used && as the &
> | | usually allows an underline of the next character. However, in the CF
> if I
> | | use either one or two ampersands in the text string, no ampersand ever
> | | displays. Does this mean that CF does not allow ampersands in the Text
> | | property of MenuItem or if so, what am I missing?
> | |
> | | Regards,
> | | Neville Lang
> | |
> | |
> | |
> |
> |
>



 
Reply With Quote
 
Shanti
Guest
Posts: n/a
 
      7th Oct 2003
You can use 'n' instead, like "Read n Write", 'Jack n Jill', etc.

"Neville Lang" <(E-Mail Removed)> wrote in message
news:e7e$(E-Mail Removed)...
> David,
>
> While for the most part, I generally use single words on PPC menus, there
> has been a time when I needed to use two words separated by the ampersand
> (&) and this is where the "&&" failed. At present my workaround is to use
> the word "and" but this makes the string a bit long. Any future help in

this
> area would be appreciated.
>
> Regards,
> Neville Lang
>
>
>
> "David So [MSFT]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > My Correction.
> >
> > Ampersand is supported in NetCF v1.0 SP2 but it only supported turning
> > character with underline. Currently it doesn't support the && parsing.

> This
> > would be something we would consider in future version of NetCF.
> >
> > Thanks,
> >
> > David
> > This posting is provided "AS IS" with no warranties, and confers no

> rights.
> > --------------------
> > | X-Tomcat-ID: 686887842
> > | References: <(E-Mail Removed)>
> > | MIME-Version: 1.0
> > | Content-Type: text/plain
> > | Content-Transfer-Encoding: 7bit
> > | From: (E-Mail Removed) (David So [MSFT])
> > | Organization: Microsoft
> > | Date: Mon, 06 Oct 2003 22:36:11 GMT
> > | Subject: RE: Ampersand query in MenuItem Text, C#
> > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> > | Message-ID: <(E-Mail Removed)>
> > | Newsgroups: microsoft.public.dotnet.framework.compactframework
> > | Lines: 39
> > | Path: cpmsftngxa06.phx.gbl
> > | Xref: cpmsftngxa06.phx.gbl
> > microsoft.public.dotnet.framework.compactframework:35277
> > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
> > |
> > | Neville,
> > |
> > | NetCF does not support ampersand in all menuitems, it strips off any
> > | ampersand in menuitem. I'll try to see if there's any work around that
> > you
> > | can show it.
> > |
> > | Thanks,
> > | David
> > |
> > |
> > | This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > | --------------------
> > | | Reply-To: "Neville Lang" <(E-Mail Removed)>
> > | | From: "Neville Lang" <(E-Mail Removed)>
> > | | Subject: Ampersand query in MenuItem Text, C#
> > | | Date: Sun, 21 Sep 2003 01:02:02 +1000
> > | | Lines: 13
> > | | X-Priority: 3
> > | | X-MSMail-Priority: Normal
> > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> > | | Message-ID: <(E-Mail Removed)>
> > | | Newsgroups: microsoft.public.dotnet.framework.compactframework
> > | | NNTP-Posting-Host: 203.222.147.72
> > | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
> > | | Xref: cpmsftngxa06.phx.gbl
> > | microsoft.public.dotnet.framework.compactframework:33996
> > | | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> > | |
> > | | Hi all,
> > | |
> > | | On a MenuItem, I want to pass an ampersand so that it displays on

the
> > menu
> > | | item, as in "Edit & Copy". In the past, I have simply used && as the

&
> > | | usually allows an underline of the next character. However, in the

CF
> > if I
> > | | use either one or two ampersands in the text string, no ampersand

ever
> > | | displays. Does this mean that CF does not allow ampersands in the

Text
> > | | property of MenuItem or if so, what am I missing?
> > | |
> > | | Regards,
> > | | Neville Lang
> > | |
> > | |
> > | |
> > |
> > |
> >

>
>



 
Reply With Quote
 
Neville Lang
Guest
Posts: n/a
 
      7th Oct 2003
Shanti,

Thanks for the tip.

Regards,
Neville Lang



"Shanti" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You can use 'n' instead, like "Read n Write", 'Jack n Jill', etc.
>
> "Neville Lang" <(E-Mail Removed)> wrote in message
> news:e7e$(E-Mail Removed)...
> > David,
> >
> > While for the most part, I generally use single words on PPC menus,

there
> > has been a time when I needed to use two words separated by the

ampersand
> > (&) and this is where the "&&" failed. At present my workaround is to

use
> > the word "and" but this makes the string a bit long. Any future help in

> this
> > area would be appreciated.
> >
> > Regards,
> > Neville Lang
> >
> >
> >
> > "David So [MSFT]" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > My Correction.
> > >
> > > Ampersand is supported in NetCF v1.0 SP2 but it only supported turning
> > > character with underline. Currently it doesn't support the && parsing.

> > This
> > > would be something we would consider in future version of NetCF.
> > >
> > > Thanks,
> > >
> > > David
> > > This posting is provided "AS IS" with no warranties, and confers no

> > rights.
> > > --------------------
> > > | X-Tomcat-ID: 686887842
> > > | References: <(E-Mail Removed)>
> > > | MIME-Version: 1.0
> > > | Content-Type: text/plain
> > > | Content-Transfer-Encoding: 7bit
> > > | From: (E-Mail Removed) (David So [MSFT])
> > > | Organization: Microsoft
> > > | Date: Mon, 06 Oct 2003 22:36:11 GMT
> > > | Subject: RE: Ampersand query in MenuItem Text, C#
> > > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> > > | Message-ID: <(E-Mail Removed)>
> > > | Newsgroups: microsoft.public.dotnet.framework.compactframework
> > > | Lines: 39
> > > | Path: cpmsftngxa06.phx.gbl
> > > | Xref: cpmsftngxa06.phx.gbl
> > > microsoft.public.dotnet.framework.compactframework:35277
> > > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
> > > |
> > > | Neville,
> > > |
> > > | NetCF does not support ampersand in all menuitems, it strips off any
> > > | ampersand in menuitem. I'll try to see if there's any work around

that
> > > you
> > > | can show it.
> > > |
> > > | Thanks,
> > > | David
> > > |
> > > |
> > > | This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > | --------------------
> > > | | Reply-To: "Neville Lang" <(E-Mail Removed)>
> > > | | From: "Neville Lang" <(E-Mail Removed)>
> > > | | Subject: Ampersand query in MenuItem Text, C#
> > > | | Date: Sun, 21 Sep 2003 01:02:02 +1000
> > > | | Lines: 13
> > > | | X-Priority: 3
> > > | | X-MSMail-Priority: Normal
> > > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> > > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> > > | | Message-ID: <(E-Mail Removed)>
> > > | | Newsgroups: microsoft.public.dotnet.framework.compactframework
> > > | | NNTP-Posting-Host: 203.222.147.72
> > > | | Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
> > > | | Xref: cpmsftngxa06.phx.gbl
> > > | microsoft.public.dotnet.framework.compactframework:33996
> > > | | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> > > | |
> > > | | Hi all,
> > > | |
> > > | | On a MenuItem, I want to pass an ampersand so that it displays on

> the
> > > menu
> > > | | item, as in "Edit & Copy". In the past, I have simply used && as

the
> &
> > > | | usually allows an underline of the next character. However, in the

> CF
> > > if I
> > > | | use either one or two ampersands in the text string, no ampersand

> ever
> > > | | displays. Does this mean that CF does not allow ampersands in the

> Text
> > > | | property of MenuItem or if so, what am I missing?
> > > | |
> > > | | Regards,
> > > | | Neville Lang
> > > | |
> > > | |
> > > | |
> > > |
> > > |
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ampersand in Query Criteria AG Microsoft Access Queries 10 7th Jan 2010 08:29 PM
How to include ampersand (&) in button text milop Microsoft Dot NET Framework Forms 10 21st May 2009 06:44 PM
How to include ampersand (&) in button text milop Microsoft Dot NET Framework Forms 0 20th May 2009 07:29 PM
Query Problem - can't use field with ampersand (&) in its name VC Microsoft Access Queries 3 4th Dec 2007 12:23 AM
Ampersand and other symbols in text =?Utf-8?B?TWVjaEVuZw==?= Microsoft Access Queries 4 1st Jul 2007 01:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 AM.