RemoteApp receives multiple KeyUp events without any keys being pressed
hi all,
i have simple winforms app using try , track down happening keyboard events when using remoteapp.
basically have form , textbox track keydown, keypress , keyup events.
as start app via remoteapp receive multiple keyup events without pressing key.
does know why remoteapp sending these random keyup events.
the code of simple test app follows:
public class form1 dim lst new list(of string) private sub addtolist(str string) lst.add(str) end sub private sub textbox1_keydown(sender object, e system.windows.forms.keyeventargs) handles textbox1.keydown addtolist("txt keydown" & vbtab & "keycode " & e.keycode) end sub private sub textbox1_keypress(sender object, e system.windows.forms.keypresseventargs) handles textbox1.keypress addtolist("txt keypress" & vbtab & "keychar " & e.keychar) end sub private sub textbox1_keyup(sender object, e system.windows.forms.keyeventargs) handles textbox1.keyup addtolist("txt keyup" & vbtab & "keycode " & e.keycode) end sub private sub form1_formclosing(sender object, e system.windows.forms.formclosingeventargs) handles me.formclosing addtolist("form closing") io.file.appendalllines(application.startuppath & "\simplekeyup_v2.txt", lst) end sub private sub form1_keydown(sender object, e system.windows.forms.keyeventargs) handles me.keydown addtolist("form keydown" & vbtab & "keycode " & e.keycode) end sub private sub form1_keypress(sender object, e system.windows.forms.keypresseventargs) handles me.keypress addtolist("form keypress" & vbtab & "keychar " & e.keychar) end sub private sub form1_keyup(sender object, e system.windows.forms.keyeventargs) handles me.keyup addtolist("form keyup" & vbtab & "keycode " & e.keycode) end sub private sub form1_load(sender object, e system.eventargs) handles me.load addtolist("form load") end sub end class
simply opening , closing app via remoteapp gives following results:
form load
form keyup keycode 9
txt keyup keycode 9
form keyup keycode 16
txt keyup keycode 16
form keyup keycode 16
txt keyup keycode 16
form keyup keycode 17
txt keyup keycode 17
form keyup keycode 17
txt keyup keycode 17
form keyup keycode 9
txt keyup keycode 9
form keyup keycode 18
txt keyup keycode 18
form keyup keycode 9
txt keyup keycode 9
form keyup keycode 18
txt keyup keycode 18
form keyup keycode 9
txt keyup keycode 9
form closing
cheers , in advance!
dwayne
hi,
it seems issue has been out of scope of forum.for coding issue,i suggest ask in msdn forum see whether can out.
regards,
clarence
technet subscriber support
if technet subscription user , have feedback on our support quality, please send feedback here.
please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.
Windows Server > Remote Desktop Services (Terminal Services)
Comments
Post a Comment