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.


unassign event


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-15-2007, 12:17 PM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default unassign event

On runtime I add events to an object (e.g. onFocus to a textbox), but on closing the form the event stays active so I get errors when swithing to an other form. I cant find a way to remove te event from the object. Is it possible any way?
Reply With Quote
  #2 (permalink)  
Old 12-15-2007, 01:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

You can't remove the event.
You can do something like:
Code:
Sub Globals
 handleFocus = true 'you can use an array or an arraylist instead.
End Sub

Sub TextBox_GotFocus
 If Not(handleFocus) then return
 ...
End Sub
Reply With Quote
  #3 (permalink)  
Old 12-15-2007, 03:02 PM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default

That's a possible solution. thanks Erel
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
Event keyboard question micro Questions & Help Needed 8 10-30-2008 05:39 PM
Table - MouseDown event and more Erel Code Samples & Tips 1 04-07-2008 06:55 PM
TreeView Click Event RandomCoder Basic4ppc Wishlist 5 02-28-2008 04:23 PM
TreeView event magi6162 Questions & Help Needed 3 08-29-2007 11:29 AM
Calendar event Rioven Questions & Help Needed 7 08-28-2007 08:00 AM


All times are GMT. The time now is 05:22 AM.


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