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.


Application behaves differently in Device


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008, 08:07 AM
Senior Member
 
Join Date: Mar 2008
Posts: 102
Default Application behaves differently in Device

Hi,

I made a project, it works fine in the desktop. when the setup file is created and installed in the device, it behaves differently.
Example: In the application selection of future date in the 1st tabpage freezes other tabpages and the controls as well. it works fine in the desktop.

code :
Sub tbc2_selectionchanged(Index,"") 'sub for Freezing all other tabpages except the 1st tabpage.
If tbc2.selectedindex > 0 AND hh=1 Then
tbc2.selectedindex=0
End If
End Sub

here hh=1, means future date selected.

any suggestions ?


regards
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 09:20 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,759
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Assuming tbc2 is a tab control then I think that having parameters to tbc2_selectionchanged is wrong. I don't know if it is causing a problem but I'd first remove them. Having an empty string as a parameter is wrong anyway! Presumably you haven't optimised compiled this - I think the compiler would choke on that and the prescence of un-needed parameters.

If it's not the above then it's only a guess but changing "tbc2.selectedindex=0" in the SelectionChanged event may cause another SelectionChanged event to occur and the Sub to be re-entered The first thing I would try is to comment out that line and see if the problem goes away. Then you could try

Code:
Sub Globals
  InEvent = false
End Sub

Sub tbc2_selectionchanged(Index,"") 
  If InEvent then
    Return
  Else
    InEvent = True
    If tbc2.selectedindex > 0 AND hh=1 Then 
      tbc2.selectedindex=0 
    End If
    InEvent = False
  End If
End Sub
Reply With Quote
  #3 (permalink)  
Old 08-06-2008, 11:57 AM
Senior Member
 
Join Date: Mar 2008
Posts: 102
Default

Thanks for your time and Sorry for my late response.

Its the same as before, work on desktop but not on the device.

regards,
Reply With Quote
  #4 (permalink)  
Old 08-06-2008, 12:05 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,759
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by mozaharul View Post
Its the same as before, work on desktop but not on the device.
We need a LOT more detail than this to even start to help. Have you optimised compiled the code? That compiler is very fussy and may show where a problem lies. If it gets through the optimising compiler and still misbehaves you need to remove bits from your code until the problem goes away. That will give you some idea of where the problem lies. If you can't then find the problem post the smallest bit of code you can make that shows the problem.
Reply With Quote
  #5 (permalink)  
Old 08-07-2008, 05:48 AM
Senior Member
 
Join Date: Mar 2008
Posts: 102
Default

Its now working !

Thanks


regards
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
Application runs Full screen on device but no keyboard mozaharul Questions & Help Needed 2 08-14-2008 11:44 AM
Application behaves differently in PPC mozaharul Questions & Help Needed 3 07-31-2008 04:22 AM
Tab control behaves differently on device than desktop AHeroMenKill Questions & Help Needed 2 06-24-2008 11:46 AM
How to identify each pocketpc differently hung Questions & Help Needed 3 07-24-2007 11:05 AM
DB Application scott93727 Share Your Creations 0 05-02-2007 06:24 AM


All times are GMT. The time now is 04:26 PM.


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