Print Page | Close Window

Report Control will disable the tab key feature

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6301
Printed Date: 30 April 2025 at 12:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control will disable the tab key feature
Posted By: cybeh
Subject: Report Control will disable the tab key feature
Date Posted: 02 February 2007 at 3:58am
uploads/20070202_035511_RpcProblem.zip - uploads/20070202_035511_RpcProblem.zip


Hi,

Please find attached file for the issue as I mentioned in the subject.
During the text box got focus, I code the reportcontrol.visible = true
when i try to press the tab key on my keyboard, it seems like can't detect the tab key anymore, until I manually set a "lost focus" by using my mouse, then only the tab feature will functioning back.

Please advice.

Thanks.




Replies:
Posted By: sserge
Date Posted: 03 February 2007 at 5:22pm
Better solution - use this code in Form2:


Dim m_bSkipFocusEvent As Boolean
 
Private Sub Form_Initialize()
        m_bSkipFocusEvent = False
End Sub
 
Private Sub Text1_GotFocus(Index As Integer)
 
    If m_bSkipFocusEvent Then
        Exit Sub
    End If
   
    If Index = 0 Then
        m_bSkipFocusEvent = True
       
        ReportControl1.Visible = True
       
        ReportControl1.SetFocus
        DoEvents
        Text1(0).SetFocus
        DoEvents
       
        m_bSkipFocusEvent = False
    End If
End Sub


--
WBR,
Serge



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