I just found that if you try to use SetFocus in the Activate event, it doesn't appear to work. Using SetFocus just before using DoModal for the window does work. Any ideas why it doesn't work in the Activate event?
Brian Millham This message traveled at least 44,000 miles to reach you! [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jez White Sent: Sunday, November 28, 2004 7:15 AM To: Brian Millham; perl-win32-gui-users Subject: Re: [perl-win32-gui-users] Forcing focus on a field > I've run into a minor problem, probably just me being dense again... > > I have a form that you click on a button to open another form. When the > second form opens, no field is active until you click on one. How do you > set a field to be the default field (in the Loft), or how can you force > focus to a field of choice? Can you use the method SetFocus? cheers, jez. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-1, 11/26/2004 Tested on: 11/28/2004 1:56:21 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com