Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed 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
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
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
Attached Files
File Type: sbp MsgBoxTest.sbp (1.8 KB, 4 views)
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 10:42 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,956
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
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web browser for desktop and device agraham Additional Libraries 42 09-11-2008 07:37 AM
Editable Table - Device & Desktop Erel Code Samples & Tips 10 09-03-2008 07:40 AM
When compiling for Device, Desktop code is used Woinowski Bug Reports 6 07-03-2008 09:30 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 11:40 AM
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:47 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0