Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - focus on a grid in a pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

focus on a grid in a pane

 Post Reply Post Reply
Author
Message
Robbbi View Drop Down
Newbie
Newbie


Joined: 16 May 2013
Location: Italy
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Robbbi Quote  Post ReplyReply Direct Link To This Post Topic: focus on a grid in a pane
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.