Regarding Button Event
-
Hi All, i have one textbox, we written a code such a way that,after the value entered in the textbox then we press enter it is doing some action. Similary we have one Button, if we enter it was doing some action. Now my requirement is that if i press the enter, at that time i need to raise the button event for that what we need to do. i.e how to sink the button event when we press enter button. If anybody knows the answer kindly let me know.. if you have any qurries regarding this mail to me. Thanks and Regards Dayakar D.N
-
Hi All, i have one textbox, we written a code such a way that,after the value entered in the textbox then we press enter it is doing some action. Similary we have one Button, if we enter it was doing some action. Now my requirement is that if i press the enter, at that time i need to raise the button event for that what we need to do. i.e how to sink the button event when we press enter button. If anybody knows the answer kindly let me know.. if you have any qurries regarding this mail to me. Thanks and Regards Dayakar D.N
If you are talking about controls in a dialog, then set the Default style on the button that you want to be trigged when Enter is pressed. The dialog manager will do the rest.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?