Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Different behaviour DeskTop and Device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2008, 10:22 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default Different behaviour DeskTop and Device

Hi,

I found the following different behaviour for DeskTop and Device. When I in the coding, executed because of an event on Form2, sets the focus on a control on Form1:

- the Desktop stays on Form2

- the Device shows Form1 again.

Is this caused by Basic4PPC or Microsoft?

The program attached illustrates the 'problem'.

Harry
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 10:42 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Basic4ppc handles the form navigation on the desktop.
The solution is to first show the form you want and only then set the focus:
Code:
Form1.Show
TextBox1.Focus
Reply With Quote
  #3 (permalink)  
Old 02-22-2008, 12:36 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Erel,

I only wanted to share this experience with others. The solution is simple, as soon as you know the cause. It took me quite some time to find the cause in a, for me, rather complicated program, because that branche of the program was only used in case of user input errors.

Harry
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web browser for desktop and device agraham Additional Libraries 73 03-11-2012 03:44 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions (Windows Mobile) 19 10-27-2010 01:08 PM
Editable Table - Device & Desktop Erel Code Samples & Tips 27 01-15-2010 10:42 PM
Device or Desktop DaveW Questions (Windows Mobile) 2 11-07-2008 12:04 PM
Different behavior in desktop vs. device on AddEvent willisgt Bug Reports 4 01-13-2008 12:29 PM


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0