Print Page | Close Window

focus get lost

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1243
Printed Date: 10 May 2024 at 4:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: focus get lost
Posted By: tobi
Subject: focus get lost
Date Posted: 06 October 2004 at 2:20pm

I have a little problem in my editor application which uses tabbed mdi like your MDI sample where itīs able to reproduce the problem:
If I type something in the edit control the cursor/focus is there. Now if you open the HELP | ABOUT dialog and click on the OK button the cursor/focus does not return to the edit control. I have to click with the mouse into the edit control to continue typing.
Does anyone know how to prevent this behavior and make the focus return to the control it was before ?




Replies:
Posted By: Oleg
Date Posted: 07 October 2004 at 1:05am

If you create simple MDI application (with Wizard) without CommandBars, add AboutBox as

MsgBox "Version " & App.Major & "." & App.Minor & "." & App.Revision

you will see same problem.  It is VB problem not CommandBars.

 

little hint:

MsgBox "Version " & App.Major & "." & App.Minor & "." & App.Revision
Screen.ActiveControl.SetFocus



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ianp
Date Posted: 07 October 2004 at 3:23am

moved to https://forum.codejock.com/forum_posts.asp?TID=1262&PN=1&TPN=1 - https://forum.codejock.com/forum_posts.asp?TID=1262& PN=1&TPN=1



Posted By: tobi
Date Posted: 07 October 2004 at 2:31pm

thanks oleg,
your workaround help !




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net