Print Page | Close Window

focus on a grid in a pane

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=21647
Printed Date: 12 July 2025 at 8:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: focus on a grid in a pane
Posted By: Robbbi
Subject: focus on a grid in a pane
Date Posted: 16 May 2013 at 1:30am
Hello ! I have a problem,
I have two pane, one with a truedbgrid and another with a web browser.
Clicking on a grid the web browser show the relative attacched file like html or pdf.
When the attacched file is displyed the pane with the grid lost focus.
Attempting to navigate the grid with KeyUp event the grid lost focus and to replace it is necessary to click on a grid with mouse.
Is there a way to set focus on a grid every time I click on up or down key after web browser show the attacched file ?

Private Sub TDBGrid1_KeyUp(KeyCode As Integer, Shift As Integer)

If Rs_GrEmail.EOF = False Then
   formAtt.WB1.InnerHTML = Rs_GrEmail("HTMLBody")
End If

now focus remain on formAtt (tdbgrid1.setfocus don't work)

End Sub


Thank you everybody help me !


-------------
Rob



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