Click here to get back home

smartphone and Windows mobile 6 app

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
smartphone and Windows mobile 6 app Big V 11-02-2007
Get Chitika Premium
Posted by Big V on November 2, 2007, 5:55 pm
Please log in for more thread options
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?




Posted by Joel Clark [MSFT] on November 2, 2007, 7:26 pm
Please log in for more thread options
Here is some documentation links for recommend WM6 application guidelines.
The wiki has fairly good updates on app development that may be able to help
direct you also.

http://msdn2.microsoft.com/en-us/library/bb158625.aspx
http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.HomePage

--
This posting is provided "AS IS" with no warranties, and confers no rights.

>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?
>
>
>


Posted by Christopher Fairbairn on November 4, 2007, 5:00 pm
Please log in for more thread options
Hi,

> 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.

Within Visual Studio is your target platform set to Windows Mobile 6
Standard?

If it was you should see that the button control is not present within the
toolbox, and hence can not be dragged onto your form.

The "Change Target Platform" option can be found within the Project menu of
Visual Studio 2005.

By the sounds of it you have configured your project's target platform to be
"Windows Mobile 6 Professional", but running the resultant executable on a
Standard (smartphone) device.

This will cause the toolbox to show controls (such as buttons) which are not
supported by the .NET Compact Framework on a standard (smartphone) device.
If you use these controls they will throw NotSupported exceptions at
runtime.

Smartphone applications which utilise buttons are not utilising "buttons",
they are using custom controls which just happen to look like a standard
button. If you wanted a button within your smartphone application
developinga small custom control would probably be the way to go.

Hope this helps,
Christopher Fairbairn


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?
>
>
>
>

Similar ThreadsPosted
About Windows Mobile 5 Smartphone Ed February 2, 2006, 12:00 pm
Windows Mobile 5 based smartphone February 15, 2006, 1:20 am
DialogBox on Windows Mobile 5 Smartphone BUG??? June 1, 2006, 1:59 pm
Windows Mobile 5.0 Smartphone SDK Install July 13, 2006, 10:24 am
How to capture SMS on windows mobile 5.0 smartphone ? August 10, 2006, 6:23 am
Need help to install Windows Mobile 5.0 SDK for Smartphone October 29, 2006, 8:47 pm
OMA DM / SyncML DM on Windows Mobile 5 (WM5) Smartphone January 31, 2007, 3:30 pm
Problem Installing Windows Mobile 5.0 Smartphone SDK September 29, 2005, 1:17 pm
is there a null camera available for windows mobile 5.0 smartphone February 2, 2006, 3:28 am
What SDK do I need for Windows Mobile 2003 Second Edition for a Smartphone? May 14, 2006, 5:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap