|
Posted by Lloyd W. McElan on January 25, 2008, 8:17 am
Please log in for more thread options Sorry I'm late. I just joined the group. I haven't tested on a device yet
but I've already tested on emulators in VB. I tested the following on an
emulator in Mobile 5.0. I've gone over the lit for Mobile 6.0 and don't see
anything there that would affect what i've already done.
One, use link labels for command buttons even though the reference material
says LinkLabels are not buttons. I wrote an application where exceptions
were detected after I turned all the conditions to error rather than none in
VB. I changed the logic that caused the exceptions from LinkLabel.Focus
(like a command button). I just reversed the logic to True =
LinkLabel.Focused. I know this is illogical because you have to remember
that LinkLabel.Focused is False. You don't code LinkLabel.Focused = True
because it immediatly errors out. There are no errors any more with True =
LinkLabel.Focused.
Two, use labels on top of textboxes to hide the textboxes. Then you can use
KeyPress, GotFocus, LostFocus and KeyDown to control what action you want to
perform. You have to set the textboxes up so the logic flows from one to
another and you can go left or right or up or down. Or you can simply branch
to perform your function when you move to one of the hidden textboxes. When
the textboxes get focus I changed the color of the label on top of it to keep
track of where I was.
--
Lloyd W. McElaney
"Big V" wrote:
> I developed a Windows mobile 6 app in VS 2005 after downloading/installing
> the mobile 6 SDK. The application has a couple of simple text boxes with a
> couple of command buttons. I did not put any code behind anything yet.
>
> I installed the application on a Motorola Q9m smartphone. The application
> will not run if I include a command button on the form.
>
> Visual Studio does NOT stop me from placing the button on the form, and
> other applications such as Media player have buttons. I downloaded Live
> Search from the Microsoft Web site and it has "picture" buttons at the
> bottom of the screen.
>
> Where do I find documentation on what I can and what I can't use on my
> smartphone application?
>
>
>
>
|