Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set focus on a form
Message
From
04/06/2002 10:01:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00664140
Message ID:
00664442
Views:
22
>Thanks! that works fine on my edit, but not on my insert on my toolbar?
>
>Wonder what i'm doing in my insert thats interfering?

Well, it would help if you said what you are doing.

Basically, calling a setfocus() on anything on a form triggers a couple of events; if the form is not visible, it may trigger form.show, and it will for sure trigger form.activate if the form is not active already. You can watch this in the debugger, but it will show you only those events which have some code; event logging may show more.

I've seen a form which was hidden, and some framework code called during the destroy() had a setfocus() in it, and I saw the form come visible again, and its .activate ran as well.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform