Print Page | Close Window

SOLVED: RC & the Cancel and Default Buttons

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=12459
Printed Date: 19 July 2025 at 9:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: RC & the Cancel and Default Buttons
Posted By: ElvisM
Subject: SOLVED: RC & the Cancel and Default Buttons
Date Posted: 16 October 2008 at 2:33pm
Hi friends.
I need your help.
 
I'm having problems with the Cancel and the Default buttons in my form.
When the ReportControl takes the focus, the Escape and the Enter keys don't fire the button's click event. I need pass the focus to another control in order to this keys work properly.
 
The RC has any property to fix this issue or is necessary code it?
 
Regards,
Elvis
PD: Excuseme my bad english.


-------------
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015



Replies:
Posted By: ElvisM
Date Posted: 18 October 2008 at 3:33pm
Any response about my issue?
Please...


-------------
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015


Posted By: Aaron
Date Posted: 24 October 2008 at 5:01am
Hi,
 
Yes, you have to code it yourself. You could use PreviewKeyDown event to determine what to do. If ENTER key was pressed you could set focus to default button (for example)
 
Sometimes it's a good thing and sometimes it's less to have a default button which fires click event... Also annoying when having a multirow textbox and user presses ENTER (I would like to go to next line in textbox but click event will be fired for the default button) the same here, you have to prevent this yourself... 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: ElvisM
Date Posted: 27 October 2008 at 2:29pm
Hi Aaron...
You are right..
Thanks a lot.

Elvis


-------------
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015



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