Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Report Control: GotFocus event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control: GotFocus event

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: Report Control: GotFocus event
    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.

Back to Top
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2005 at 2:28pm
and tabbing from a reportcontrol to another control is impossible too !
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.188 seconds.