Print Page | Close Window

SOLVED: Focus problem with floating toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11980
Printed Date: 08 September 2025 at 1:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Focus problem with floating toolbar
Posted By: strider
Subject: SOLVED: Focus problem with floating toolbar
Date Posted: 26 August 2008 at 4:47pm
I have two command bars.  One contains a combobox.  The other contains a picture box custom control.  If the user floats the command bar that has the custom control, then no focus can be placed on the combo box or the form itself.  The user must re-dock the bar to set focus on anything else.  If the user does manage to do this, the application will crash when the use exits the form.    Any Ideas?
 
https://forum.codejock.com/uploads/20080826_164326_CJToolbarTest1.zip - uploads/20080826_164326_CJToolbarTest1.zip


-------------
ActiveX 13.2.1

Strider



Replies:
Posted By: Oleg
Date Posted: 27 August 2008 at 4:01am
Hi,
 
Its because form don't have any focusable control.
 
Set TabStop of PictureBox to False and add some button to form.


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


Posted By: strider
Date Posted: 27 August 2008 at 10:36am

Yes, this was the problem! 

My actual project has a somewhat complex custom control on it.  I had to make sure all sub-controls also had their tabstop set to false, not just the picture box.
 
Now it works like a charm!  Thank you.


-------------
ActiveX 13.2.1

Strider



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