Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

windows forms

0 views
Skip to first unread message

DaveP

unread,
Nov 15, 2009, 12:03:21 PM11/15/09
to
I have a button next to a text box
when i click the button i show a Datagridview
there is a button on the datagridview window
so the user can click button or press the Alt+S
&Select lablel on the button

when the button is clicked it selects the data closes the window
Fills the textbox with the data selected and i Senkey.Send{"{TAB") to leave
the text box
this works.....what does not work is when the User Presses the Alt+s key
while in the Datagridview window
it enters the button click event as if the button was pressed...but never
leaves the Text box

Thanks
DP


Scott M.

unread,
Nov 15, 2009, 2:07:25 PM11/15/09
to

"DaveP" <dvs...@sbcglobal.net> wrote in message
news:hdpbtu$4bo$1...@adenine.netfront.net...

Can't you just have the button take the focus in the button click event via
button.focus?

-Scott


DaveP

unread,
Nov 20, 2009, 11:17:08 AM11/20/09
to
This is a Inherited Button...and Regardless where or wat
Im just trying to figure out the Deal with Alt keys on button short
cuts...getting the Ding and wont move to next control

and yes i can set the next control focus in the application code, but when u
getnextcontrol() and set focus to the next control the current control wont
exec a leave event

I have it working..i just dont know why in the inherted control...it is not
working correctly...

Thanks alot
DP


"Scott M." <s-...@nospam.nospam> wrote in message
news:%23QY%23ZaiZK...@TK2MSFTNGP05.phx.gbl...

0 new messages