SOLVED: RC & the Cancel and Default Buttons |
Post Reply |
Author | |
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
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 |
|
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
|
Any response about my issue?
Please...
|
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
|
Hi Aaron...
You are right.. Thanks a lot. Elvis |
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |