probably simple newbie question - can't find answer!

G

Guest

I'm new to CE - old vb6 programmer; some .Net, but mostly asp.net.

I'm writing a simple program for a handheld computer (scanner). I am using
VS 2003 .NET Compact Framework - smart device application – Windows CE
format. I am programming for a Psion Teklogix WorkAboutPro handheld device
which has a full keyboard. It does not support pocket pc, but it does use
windows ce.net 4.1. I already have a huge program (vb6) in production
(automobile processing plant) with these units. I did not have to deal with
windows ce for the first set of programs as I was using remote desktop to
have the unit login to a windows server, and there was no program on the unit
itself
..
The customer has now asked for a "store it forward" program to be used when
they are out of range of the wireless access points, so I now am having to
actually write and deploy directly to the device. It is quite an experience
trying to program this unit.

When I hit the tab or enter key, nothing happens to move to the next
control. I'm suspecting that this is the expected behavior, but I haven't
been able to figure out how to move to the next control, say after a scan
completes, or the user enters something from the keyboard in the 1st control.
In regular vb.net, the cursor moves to the next field when the user presses a
tab key. In regular vb.net, tab will move to the next control, but not in
the compact framework.

I have set the 2 textbox controls to accepts enter and accepts tab, but
still nothing happens when I hit enter or tab.

I've been looking for an answer, but have not found one yet in the old
posts. I also have not been able to find books on the subject.
 
C

chris-s

Yep, you guessed right. These devices are not normally expected to have
<enter> and <tab> keys so the action is not supported by default. You
can code it yourself if required.

Chris
 
G

Guest

You have a small problem because Compact Framework doesn't support tab (or
better it supports tab at least SP 3 but you ccanot assign the order - at
least from what I know). You could implement it by yourself. A solution would
be a timer every 2 seconds let's say which verifies if any of the controls
that you are interested in has focus - if so do nothing, otherway put the
focus on the first control you are interested. From there with KeyPress event
and verify if Tab you can move the focus to the next control you are
interested in
 
P

Paul G. Tobey [eMVP]

The order is basically the z-order of the controls, which, if I remember
right, is the opposite of the creation order...

Paul T.
 
C

Chris Tacke, eMVP

When I hit the tab or enter key, nothing happens to move to the next
control. I'm suspecting that this is the expected behavior, but I
haven't
been able to figure out how to move to the next control, say after a scan
completes, or the user enters something from the keyboard in the 1st
control.
In regular vb.net, the cursor moves to the next field when the user
presses a
tab key. In regular vb.net, tab will move to the next control, but not
in
the compact framework.

If you have CF 1.0 SP2 (or was it 3?) then tab order is supported, but only
as the Z-order of the controls. So you can't explicitly set it, but it will
tab from control to control in the order they were added to the Form.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top