Thanks for your suggestions. I have tried with the given code That is
also so much helpful for me. But what I am trying to do is whenever
the key for 'E' will be pressed, '2' should be entered. by the given
number will be accepted but for that I have to press one extra key .
Please give some direction to solve the problem.
On Mar 30, 11:04=A0pm, "Hilton" <nos...@nospam.com> wrote:
> // Get the handle
>
> this.Capture =3D true;
>
> IntPtr hWnd =3D GetCapture();
>
> this.Capture =3D false;
>
> int lStyle =3D BaseTextBox.GetWindowLong (hWnd, GetWindowLongParam.GWL_STY=
LE);
>
> lStyle |=3D (int) es;
>
> BaseTextBox.SetWindowLong (hWnd, GetWindowLongParam.GWL_STYLE, lStyle);
>
> ----------------------
>
> public enum GetWindowLongParam
>
> {
>
> GWL_WNDPROC =3D (-4),
>
> GWL_HINSTANCE =3D (-6),
>
> GWL_HWNDPARENT =3D (-8),
>
> GWL_STYLE =3D (-16),
>
> GWL_EXSTYLE =3D (-20),
>
> GWL_USERDATA =3D (-21),
>
> GWL_ID =3D (-12)
>
> }
>
> public enum EditStyle
>
> {
>
> ES_LEFT =3D 0x0000,
>
> ES_CENTER =3D 0x0001,
>
> ES_RIGHT =3D 0x0002,
>
> ES_MULTILINE =3D 0x0004,
>
> ES_UPPERCASE =3D 0x0008,
>
> ES_LOWERCASE =3D 0x0010,
>
> ES_PASSWORD =3D 0x0020,
>
> ES_AUTOVSCROLL =3D 0x0040,
>
> ES_AUTOHSCROLL =3D 0x0080,
>
> ES_NOHIDESEL =3D 0x0100,
>
> ES_COMBOBOX =3D 0x0200,
>
> ES_OEMCONVERT =3D 0x0400,
>
> ES_READONLY =3D 0x0800,
>
> ES_WANTRETURN =3D 0x1000,
>
> ES_NUMBER =3D 0x2000
>
> }
> "Sachin Palewar" <pale...@gmail.com> wrote in message
>
> news:a2ed6c2e-bec5-4c69-bf0c-9a7ebc4e62e2@i7g2000prf.googlegroups.com...
>
>
>
> > Treo 700W is actually based on Pocket PC Platform instead of a
> > Smartphone platform. Although its referred as Smartphone by Palm and
> > we need to input 2 in the textbox when we press 'R' on its physical
> > keyboard as its used to type 2 in numeric mode after pressing the alt
> > key.
>
> > So we need a Pocket PC compatible code. Please let us know if any of
> > you have any suggestions.
>
> > Regards,
> > Sachin Palewar
>
> > Palewar Techno Solutions
> > (Mobile Solutions for Your Business)
> >
http://www.palewar.com/ > >
http://palewar.blogspot.com/ >
> > On Mar 28, 2:16 am, Arun <arunkumarselva...@gmail.com> wrote:
> >> Neera,
> >> As Christian mentioned, there is no need to write a wrapper to do
> >> this.
> >> Check out these
> >> links,
http://msdn2.microsoft.com/en-us/library/microsoft.windowsce.form= s.in...
>
> >>
http://msdn2.microsoft.com/en-us/library/microsoft.windowsce.forms.in...= >
> >>
http://msdn2.microsoft.com/en-us/library/ms172542.aspx >
> >> Hope this helps,
> >> Cheers,
> >> Arun
>
> >> On Mar 27, 2:32 am, "Christian Resma Helle" <xtian...@gmail.com>
> >> wrote:
>
> >> > SetInputMode() should actually do the trick. If you use .NETCF 2.0 or=
> >> > higher
> >> > then theres no need to wrap it yourself (as demonstrated
> >> > in
http://www.devx.com/wireless/Article/21291). Its included in the
> >> > Microsoft.WindowsCE.Forms namespace
>
> >> > --
> >> > Regards,
> >> > Christian Resma Helle
http://christian-helle.blogspot.com >
> >> > "neera" <n_de...@rediffmail.com> wrote in message
>
> >> >news:d1869256-9168-434b-8824-05f31f84a62a@s12g2000prg.googlegroups.com=
....
>
> >> > > I am trying to make a textbox accept numeric values only and the
> >> > > target device is Treo700w using WM5.
>
> >> > > I have tried that with suggested SetInputMode() method =A0and used =
the
> >> > > code =A0given in
http://www.devx.com/wireless/Article/21291 >
> >> > > I am not getting any error but not able to do that .
> >> > > Is there anything else that we have to set for using SetInputMode()=
> >> > > method?
>
> >> > > Thanks.
>
> >> > > Neera Sharma
> >> > > Palewar Techno Solutions
> >> > > (Mobile Solutions for Your Business)
> >> > >
www.palewar.com-Hidequoted text -
>
> >> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -