PC Review


Reply
Thread Tools Rate Thread

AcceptsReturn=false doesn't work?

 
 
PeterB
Guest
Posts: n/a
 
      1st Oct 2003
Am I wrong when I say that setting AcceptsReturn in a textbox should prevent
\r\n characters in the text?

Anyway, this seems to be possible, is it a CF limitation? Do I need to check
for those characters myself when parsing the text then?

br,

Peter


 
Reply With Quote
 
 
 
 
Geoff Schwab [MSFT]
Guest
Posts: n/a
 
      6th Oct 2003
Hi Peter,

One might think so but I looked into this and found the following in help
under Textbox.AcceptsReturn...

".NET Compact Framework - Windows CE .NET Platform Note: Although you can
set AcceptsReturn to false, it always operates as true. If you want the
ENTER key to activate a particular button, you can derive a class from
TextBox and provide event handling code for ENTER when the KeyPress event
occurs."

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

This posting is provided "AS IS" with no warranties, and confers no rights.
"PeterB" <(E-Mail Removed)> wrote in message
news:ew5$(E-Mail Removed)...
> Am I wrong when I say that setting AcceptsReturn in a textbox should

prevent
> \r\n characters in the text?
>
> Anyway, this seems to be possible, is it a CF limitation? Do I need to

check
> for those characters myself when parsing the text then?
>
> br,
>
> Peter
>
>



 
Reply With Quote
 
PeterB
Guest
Posts: n/a
 
      7th Oct 2003
Ok, thanks!

"Geoff Schwab [MSFT]" <a-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Peter,
>
> One might think so but I looked into this and found the following in help
> under Textbox.AcceptsReturn...
>
> ".NET Compact Framework - Windows CE .NET Platform Note: Although you can
> set AcceptsReturn to false, it always operates as true. If you want the
> ENTER key to activate a particular button, you can derive a class from
> TextBox and provide event handling code for ENTER when the KeyPress event
> occurs."
>
> --
> Geoff Schwab
> Program Manager
> Excell Data Corporation
> http://msdn.com/mobility
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> "PeterB" <(E-Mail Removed)> wrote in message
> news:ew5$(E-Mail Removed)...
> > Am I wrong when I say that setting AcceptsReturn in a textbox should

> prevent
> > \r\n characters in the text?
> >
> > Anyway, this seems to be possible, is it a CF limitation? Do I need to

> check
> > for those characters myself when parsing the text then?
> >
> > br,
> >
> > Peter
> >
> >

>
>



 
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
ComVisible(false) doesn't work as expected Tony Johansson Microsoft C# .NET 5 29th Apr 2010 04:20 PM
viewstate = false doesn't work Dica Microsoft ASP .NET 2 22nd Jun 2007 01:57 PM
datagrid.RowHeaderVisible=false doesn't work BVM Microsoft Dot NET Framework Forms 0 20th Jul 2006 01:19 AM
Re: ShowInTaskBar = False just doesn't work? Mitchell Vincent Microsoft Dot NET 6 19th Mar 2005 05:39 AM
Application.DisplayAlerts = False - why doesn't it work? kenji4861 Microsoft Excel Misc 0 25th Feb 2004 05:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 PM.