Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More treeview problems
Message
From
20/04/1998 08:57:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
More treeview problems
Miscellaneous
Thread ID:
00093358
Message ID:
00093358
Views:
59
I have a form with a treeview control. This form also have a 'cancel' commandbutton wich in 'click' event has this code:

'thisform.release()

If the treeview has the focus, the commandbutton doesnt works with the 'esc' key.
I've tried solve this with the 'keypress' event in the treeview:

if nkeyascii = 27
thisform.commandbuttonname.click()
endif

this works. but after closing form, VFP gives an error.
I've tried too adding this code in the commandbutton click event:

thisform.removeobject("treeviewname")
thisform.release()

but the error continue.

¿Does anyone knows solution?
Saludos,
A.G.P.
---------
Next
Reply
Map
View

Click here to load this message in the networking platform