Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - default button on .NET form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

default button on .NET form

 Post Reply Post Reply
Author
Message
alexshemesh View Drop Down
Groupie
Groupie


Joined: 22 February 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote alexshemesh Quote  Post ReplyReply Direct Link To This Post Topic: default button on .NET form
    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?
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
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.