Print Page | Close Window

Programmatic focus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6323
Printed Date: 31 January 2025 at 12:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Programmatic focus
Posted By: RG7351
Subject: Programmatic focus
Date Posted: 05 February 2007 at 3:43pm

Is there some way that I can programmatically set focus to a control located in a form associated with a docking pane?

I tried:
  frmExample.oControl.setfocus
 
But this always results in 'Invalid procedure call or argument'.
 
I assume that this occurs because the frmExample may not be 'visible' as it is subclassed?  Any ideas?
 
Thanks,
 
-RG



Replies:
Posted By: Oleg
Date Posted: 06 February 2007 at 10:22am
Hi,
 
just call
 
DockingPane1.ShowPane Id
 
It will show pane and set focus.


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



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