Home > Software engineering >  VB CTRL C CTRL V for help
VB CTRL C CTRL V for help

Time:09-17

CTRL C CTRL V in written to the clipboard and paste it to the datagridview and text control operation how simple judgment
Which controls the operation, that is, which controls the judgment? Activecontrol sender etc are working.

CodePudding user response:

Setfocus attribute of the traverse again, to see who is true, who also is the focus in it, that is what you mean?

CodePudding user response:

You can set a global variable, in you want to monitor a few controls GotFocus events recorded in the current focus of control is who, don't know you CTRL + V action object is who?

In addition, since you need to implement a CTRL + C and CTRL + V operation, also will trigger the corresponding control KeyDown event has occurred, the operation control is who, who will inspire the KeyDown event has occurred? And then do the corresponding processing in it not ok?

CodePudding user response:

reference fzyj_lord reply: 3/f
you can set a global variable, in you want to monitor a few controls GotFocus events recorded in the current control gains focus is who, don't know you CTRL + V action object is who?

In addition, since you need to implement a CTRL + C and CTRL + V operation, also will trigger the corresponding control KeyDown event has occurred, the operation control is who, who will inspire the KeyDown event has occurred? And then do the corresponding processing in it not ok?


Can't judge the keydown, one thousand people is right click your mouse to choose paste operation?

CodePudding user response:

Getfocus API
  • Related