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.


Showing a form in a SelectionChanged event


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2007, 01:10 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 650
Default Showing a form in a SelectionChanged event

Showing a(nother) form in a SelectionChanged event works fine on the desktop but on the device the form opens an rapidly closes again.
I remember a thread from the old forum where this behaviour was discussed. But I don't remember the solution
Was it a timer event with a different sub or something like that?

specci48
Reply With Quote
  #2 (permalink)  
Old 05-18-2007, 02:29 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Yes, the solution is to use a timer to show the form.
Sub Table_SelectionChanged
...
Timer1.Interval = 10
Timer1.Enabled = true
End Sub

Sub Timer1_Tick
Timer1.Enabled = false
Form2.Show
End Sub
Reply With Quote
  #3 (permalink)  
Old 05-18-2007, 02:29 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi Specci48

I remember that thread, I think it had something to do with the focus property of the control that fired the case select event...Try to set the focus on some control in the new form before showing it...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 05-18-2007, 03:05 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 650
Default

I tried the trick to set the focus on different controls without any success.
Now I'm using the timer event.

Thanks
specci48
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
Keypress and SelectionChanged.. robee9931 Questions & Help Needed 1 05-27-2008 04:08 PM
SelectionChanged problem skipper Questions & Help Needed 4 04-09-2008 02:26 PM
table: SelectionChanged() and SelectedRow stbi Questions & Help Needed 7 12-21-2007 04:14 AM
SelectionChanged work in desktop, but not in ppc?? laiyilam Questions & Help Needed 1 09-10-2007 01:52 PM
Listview and SelectionChanged magi6162 Questions & Help Needed 11 09-06-2007 10:02 AM


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


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