Print Page | Close Window

Report Control: GotFocus event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1262
Printed Date: 27 September 2024 at 2:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control: GotFocus event
Posted By: ianp
Subject: Report Control: GotFocus event
Date Posted: 11 October 2004 at 5:13am

I have a form with 2 ReportControls and I need to detect when the control has the focus and perform an action on the relevant ReportControl. However, the reportcontrol never seems to fire the GotFocus event.

e.g. Create a new Standard exe. Add 2 ReportControls and a TextBox to Form1, then add the following code to form1

Private Sub ReportControl1_GotFocus()
  Text1 = "ReportControl1_GotFocus"
End Sub
Private Sub ReportControl2_GotFocus()
  Text1 = "ReportControl2_GotFocus"
End Sub
Private Sub Text1_GotFocus()
  Text1 = "Text1_GotFocus"
End Sub
If you then run the application and click each control in turn, the ReportControls never fire the GotFocus event.




Replies:
Posted By: moskito66
Date Posted: 12 April 2005 at 2:23pm

Yes this is a peace of unfinished business !

I have also try to tab from one control to a reportcontrol but you never know(see) if the reportcontrol got focus or not.



Posted By: moskito66
Date Posted: 12 April 2005 at 2:28pm
and tabbing from a reportcontrol to another control is impossible too !



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