Print Page | Close Window

default button on .NET form

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14793
Printed Date: 01 May 2024 at 11:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: default button on .NET form
Posted By: alexshemesh
Subject: default button on .NET form
Date 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?



Replies:
Posted By: Baldur
Date Posted: 19 August 2009 at 10:06am
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.



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