default button on .NET form |
Post Reply |
Author | |
alexshemesh
Groupie Joined: 22 February 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 22 July 2009 at 10:49am |
Hi
Im working with Suit 13.0.0.0 on VS 2008 c# I have very simple dialog with 2 edit box and 2 buttons. I want achieve functionality of Defualt Button. Namely when i push enter i want form to call Click event handler of specified button. In regular windows form its very simple, all you need to do is to set AcceptButton property of the form to be button you want and everything works. But with AxPshButton i cant assign it to Accept button property. I found that AxPshButton has property Defualt , and if i set it to be true, button looks like its Default button of dialog , but when i push Enter nothing happens. I need also similar functionality with Escape button. If i push Esc i want Cancel button to receive click notification. Any ideas? |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
CJ-Controls are not .NET-Controls.
If you want using .NET you need .NET-Controls.
The beaviour of controls, that are not developed for .NET ist somtimes difficult to understand, but this is the incompatibility to .NET.
|
|
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 |