RemoteApp receives multiple KeyUp events without any keys being pressed

Hi All,
I have a very simple winforms app that I am using to try and track down what is happening with keyboard events when using RemoteApp.
Basically I have a form and a textbox that track the KeyDown, KeyPress and KeyUp events.
As soon as I start my app via RemoteApp I receive multiple KeyUp events without even pressing a key.
Does anyone know why RemoteApp would be sending these random KeyUp events.
The code of my simple test app is as follows:
Public Class Form1
Dim lst As New List(Of String)
Private Sub AddtoList(str As String)
lst.Add(str)
End Sub
Private Sub TextBox1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
AddtoList("txt KeyDown" & vbTab & "KeyCode is " & e.KeyCode)
End Sub
Private Sub TextBox1_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
AddtoList("txt KeyPress" & vbTab & "KeyChar is " & e.KeyChar)
End Sub
Private Sub TextBox1_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
AddtoList("txt KeyUp" & vbTab & "KeyCode is " & e.KeyCode)
End Sub
Private Sub Form1_FormClosing(sender As Object, e As 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 As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
AddtoList("Form KeyDown" & vbTab & "KeyCode is " & e.KeyCode)
End Sub
Private Sub Form1_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
AddtoList("Form KeyPress" & vbTab & "KeyChar is " & e.KeyChar)
End Sub
Private Sub Form1_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
AddtoList("Form KeyUp" & vbTab & "KeyCode is " & e.KeyCode)
End Sub
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
AddtoList("Form Load")
End Sub
End Class
Simply opening and closing the app via RemoteApp gives the following results:
Form Load
Form KeyUp KeyCode is 9
txt KeyUp KeyCode is 9
Form KeyUp KeyCode is 16
txt KeyUp KeyCode is 16
Form KeyUp KeyCode is 16
txt KeyUp KeyCode is 16
Form KeyUp KeyCode is 17
txt KeyUp KeyCode is 17
Form KeyUp KeyCode is 17
txt KeyUp KeyCode is 17
Form KeyUp KeyCode is 9
txt KeyUp KeyCode is 9
Form KeyUp KeyCode is 18
txt KeyUp KeyCode is 18
Form KeyUp KeyCode is 9
txt KeyUp KeyCode is 9
Form KeyUp KeyCode is 18
txt KeyUp KeyCode is 18
Form KeyUp KeyCode is 9
txt KeyUp KeyCode is 9
Form Closing
Cheers and Thanks in Advance!
Dwayne

Hi,
It seems that your issue has been out of the scope of this forum.For coding issue,I suggest you ask in the
MSDN forum to see whether anyone can help you out.
Regards,
Clarence
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • Multiple Smartform Printing without any Key press

    I have created a Smartform to display payslip. For every pernr New smartform is created. I am able to supress the popup for capturing printing data but F3 key needs to pressed to go to next pernr.
    Please provide me a solution so that i can preview all pernrs(multiple smartforms) at one go without pressing any key.

    Hi shailesh,
    Just refer this sample code which contains both single spool (i.e all the records are printed at shot) and individual spool request(i.e pressing the back button).
    TABLES:
      spfli.
    DATA:
      t_spfli type
        STANDARD TABLE OF spfli.
    DATA:
      fs_spfli TYPE spfli.
    DATA:
      w_form TYPE  tdsfname,
      w_flag TYPE i,
      f_nam TYPE rs38l_fnam,
      w_input   TYPE ssfcompin,
      w_control TYPE ssfctrlop.
    SELECTION-SCREEN BEGIN OF BLOCK blk  WITH FRAME.
    SELECT-OPTIONS s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK blk .
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
    p_single RADIOBUTTON GROUP rad1,
    p_ind    RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
      PERFORM display_data.
      PERFORM ssf_function_module_name.
      PERFORM spool_request.
    *&      Form  display_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM display_data .
      SELECT *
      FROM spfli
      INTO TABLE t_spfli
      WHERE carrid IN s_carrid.
    ENDFORM.                    " display_data
    *&      Form  ssf_function_module_name
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM ssf_function_module_name .
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'Y_FORM'
        IMPORTING
          fm_name            = f_nam
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2.
    *  IF sy-subrc NE 0.
    *    MESSAGE 'Form cannot be displayed' TYPE 'E' .
    *  ENDIF.                               " IF sy-subrc eq 0
    ENDFORM.                               " ssf_function_module_name
    *&      Form  spool_request
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM spool_request .
    w_input-dialog = 'X'.
      CALL FUNCTION 'SSFCOMP_OPEN'
        EXPORTING
          input = w_input
        EXCEPTIONS
          error = 1.
    *" LOOP AT t_spfli .....................................................
      LOOP AT t_spfli INTO fs_spfli.
        w_control-no_open   = ' '.
        w_control-no_close  = ' '.
    *"Single spool request..................................................
        IF p_single EQ 'X'.
          w_control-no_open   = 'X'.
          w_control-no_close  = 'X'.
        ELSE.
    *"Individual spool request.............................................
          IF w_flag NE '1'.
            w_control-no_open  = 'X'.
            w_control-no_close = ' '.
            w_flag = 1.
            CALL FUNCTION '  '----->smartform function module
              EXPORTING
               control_parameters          = w_control
                fs_spfli                   = fs_spfli
             EXCEPTIONS
               formatting_error           = 1
               internal_error             = 2
               send_error                 = 3
               user_canceled              = 4.
           endif.                          " IF w_flag ne '1'
          ENDIF.                           " IF p_single eq 'X'.
          CALL FUNCTION '  '----->smartform function module
            EXPORTING
              control_parameters = w_control
              fs_spfli           = fs_spfli
            EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4.
        ENDLOOP.                             " LOOP at t_spfli into ...
    *&This function module close the spool request                        *
        CALL FUNCTION 'SSFCOMP_CLOSE'
          EXCEPTIONS
            error = 1.
      ENDFORM.                               " spool_request
    Regards,
    Sravanthi

  • KeyUp(Event e, int key) not responding

    For some reason the key events, such as "keyUp(Event e, int key)", will only fire after I have first clicked in the applet's window. Any clues as to why this might be happening? I though maybe it was a focus issue, so I tried using "requestFocus()" in my applet initialization, but that didn't work either. Any help is greatly appreciated.

    HERE's the source:
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class OLGame extends Applet implements ActionListener, KeyListener
      Image image;
      Graphics offscreen;
      public void init()
        setBackground(Color.black);     
        image = createImage(600,500);
        offscreen = image.getGraphics();
        setSize(600,500);
        this.addKeyListener(this);
        this.requestFocus();          
      public void update(Graphics g)
        paint(g);
      public void paint(Graphics g)
        g.drawImage(image,0,0,this);
      public void actionPerformed(ActionEvent evt)
        // add action events here          
      public void keyPressed(KeyEvent e)
        offscreen.fillRect(0,0,600,500);
        offscreen.setColor(Color.red);
        offscreen.drawString(""+e.getKeyCode(), 25,25);     
        offscreen.setColor(Color.black);
        repaint();
      public void keyReleased(KeyEvent e)
        //empty, but needed for implementing KeyListener
      public void keyTyped(KeyEvent e)
        //empty, but needed for implementing KeyListener

  • FCC configuration in Sender File Channel Without any key field name

    Hi Everyone,
    We have below flat file generated from ECC using standard tcode.
    The flat file is fixed length file and first record is header record followed by line items.
    There is no key field name in the file name.
    Can we read the file and convert into xml without any key field name?
    I want to understand if the FCC configuration for above file can be done without key name or not.
    Thanks,
    Vertika

    Hello,
    AFAIK, using FCC i really doubt u can convert file into xml.
    So technically, there are two options either read each line one by one and then do conversions in ur mapping or write a custom module which will read ur input file and convert into xml.
    Configuring Generic Sender File CC Adapter
    Thanks
    Amit Srivastava

  • Hi, I have a new laptop and would like to syncronise my iphone with iTunes (which I have installed again). But my old laptop has died so I could not transfer any media files, etc. Can I simply connect my iPhone to the laptop without any data being lost?

    Hi, I have a new laptop and would like to syncronise my iphone with iTunes (which I have installed again). But my old laptop has died so I could not transfer any media files, etc. Can I simply connect my iPhone to the laptop without any data being lost?
    Many thanks in advance!

    you have a new phone and a new comp and you want to restore to your old data ?!
    I can't think of anything but icloud, and what was purchased via itunes

  • HT4623 Why the volume of iPhone keeps going down without any button being pushed

    The volume of my iPhone keeps going down without any button being pushed, why?

    Hello there Saber7,
    If I understand correctly, the phone seems to think the phones volume up is constantly being pressedbut the button still clicks when you press it. This should be easy to isolate to hardware or software, so I would start by quitting all the apps that are running on the phone:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that reset the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting

  • My volume doesnt work and when i press the volume button it shows the headphones volume on the screen without any headphones being plugged in. what can i do to fix this?

    My volume on my iPad doesnt work, when I press the voulme button it shows the headphones volume on the screen without any headphones being plugged in. Is there a fix for this?

    Try going to settings> general > reset> reset all settings. If that doesn't work. Place a headphone jack in there and just pull it out a couple times. The problem is either your iPad setting is stuck or there is actually a hardware problem and moving the jack in and out might fix it

  • JMS adapter receiver - converion to text without any end-of-line character

    Hi everybody,
    We have the scenario
    RFC -> PI7.11 -> JMS (MQ Series)
    I want to convert the XML document of PI into a text format.
    In destination MQSeries, we can't have any end-of-line separator because the destination of MQS target is a Mainframe .
    How can we  suppress this character End-of-line ?
    Can anybody help me top solve this issue, please ?
    Thank you for you help in advance.
    Kind Regards
    E. Koralewski

    I solved my issue
    I used the module AF_Modules\StrictXml2PlainBean
    and I put the parameter field.endSeparator without any value.
    Kind Regards

  • How to create a keypress event for ANY key on the keyboard that is pressed ? (not a specific key.)

    I realise that if I use:
    if (e.which == 81) {
    do whatever
    I can activate an action based on key 81 being pressed.
    But how would I do the same, regardless of what key is pressed?

    Sorry, figured it out...
    I just don't need to specify an if..... at all.
    Duh!

  • Equium A210 hangs on Post when any key is pressed

    Hi, I have a Equium A210-1C4 that has an odd error, when I boot the machine and don't touch the keyboard it loads into Windows fine and everything works as it should.
    If the machine shuts down unexpectdley,on restart it shows the common selection of safe mode and so on with the countdown timer, if I try and select one of the other options with the arrow key the timer stops and the machine hangs (as soon as I press any key)  I then have to power it off and allow it to boot without touching anything in order to get it working again.
    The same thing occures if I try and press  F8 on boot, it just hangs.  
    I can get into the BIOS settings and also select the boot order settings. The keyboard is functioning well within windows (no stuck keys) and I have reloaded the O/S and flashed the BIOS to try and resolve this.
    The Laptop had Vista loaded origianlly but now is Win 7 - both O/S's have had the same issue  
    Any ideas would be great 
    Thanks

    Since you traded keyboards and got the same results when booting into Windows, it sounds like a Windows issue. Running the Recovery disks would reimage the hard drive and probably fix the problem. However it would wipe out all of the programs, files and settings that you installed and set since you got the computer. It would fix the problem but could cost you a lot in time and preparation by having to backup all of your files, music and pictures. Plus you may need to let some of your program publishers know that you are doing a reimage so you can get your software reinstalled without having to pay a second time. Depending how much stuff you have to backup, this could be a very time consuming process to fix this one problem.

  • No key event when compose keys are pressed

    I am supporting a legacy application for Sabre which maps some of the keys differently. For example, on a French keyboard the Compose key which is used to put a ^ on top of the vowel characters is to be remapped to produce a special character called a "Change Character" that has a special use for reservation agents that use Sabre
    The problem is, the first time you press the ^ compose key there is no key event apparently because the VM figures it doesn't yet know what key to report, it is expecting you to press a character such as 'o' and then you get an 'o' with a '^' on top of it.
    If you press the ^ compose key a second time, you get the following key events:
    keyPressed
    keyTyped
    keyTyped
    keyReleased
    On the screen you will see two ^ characters appear. Currently I remap the ^ character to the "Change Character", and I suppress the second keyTyped event so that I only get one character. The problem is that the user ends up having to press the key twice to get one "Change Character."
    I have no fix for this problem because there is no key event produced when they press the ^ compose key the first time.
    By the way, this behavior appears to have been introduced with jdk 1.3. The older jdk did produce a key event the first time you pressed the compose key. I would expect that this behavior was considered to be a bug and was fixed in jdk 1.3.
    Is there some other way to detect when the user presses a compose key? If not, is it possible for future jdk releases to report a keyPressed event when a compose key is pressed? This event would not cause a character to appear on the screen, but would allow programs to detect when the compose key is pressed.
    There is already a key on the French keyboard that behaves this way. It is the key to the left of the '1' key and it has the pipe symbol on it. If you press Shift plus this pipe key, no character is produces but a keyPressed event with a keycode of 222 is produced. I merely point this out to show that there is a way to report key events whithout producing output on the screen.
    Thanks, Brian Bruderer

    I don't know if this actually helps, but it seems that you can bind an Action to a dead key like the circumflex of the French keyboard
    Keymap keymap = textPane.addKeymap("MyEmacsBindings", textPane.getKeymap());
    Action action = getActionByName(DefaultEditorKit.beginAction );
    KeyStroke key = KeyStroke.getKeyStroke(KeyEvent.VK_DEAD_CIRCUMFLEX);
    keymap.addActionForKeyStroke(key, action);I saw this on a Swing tutorial and modified it slightly. Have a look at it :
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html
    Chris

  • Strange items deletion in various applications as if the Delete key being pressed.

    I work with a T420 laptop docked in a docking station.
    The following strange phenomenon is happaning:
    Occasionally, Items are being deleted or attempt to be deleted in various applications as if the Delete key is being pressed constantly.
    Examples:
    1. The Outlook window is open, left mouse click on the Inbox folder results in all emails being deleted.
    2. Explorer window is open, left mouse click on one of the files or folder results in attemp to delete the file or folder. Clicking 'NO' results in an endless loop of attempt to delete.
    3. Google window is open (IE), clicking on one of the letters in the search box, results in this letter being deleted.
    4. Open Task manager, results in attempt to delete the first task in row.
    When docked out the laptop from its station, this strange behavior stopped.
    Needles to say, that I replaced the external keyboard and the docking station itself, but it did not help.
    HAS ANYONE ENCOUNTERED SUCH A PROBLEM? What do I do?!

    I am having a similar issue that I can consistently recreate. I was finding that emails were "randomly" getting deleted from various folders. It was driving me crazy! I keep my Outlook inbox fairly well organized in that I keep emails in there if they require further action. I don't keep my Deleted folder organized however, so I was getting chunks of emails going from my Inbox to my Deleted items folder and it became very difficult to find all of the deleted emails that I still needed to action..... Here is how I can recreate this:
    Laptop is off of the docking station and open. Outlook has focus with an email highlighted in my inbox. I close the lid and place the laptop onto the docking station. The email that had focus is now in the deleted folder. Again, I can recreate this virtually every time. Please help!

  • Can I catch system event without any gui component

    Hi all!
    I wanted to trap different event like key pressed or mouse clicked, but not on a particular awt or swing component. I want to listen a mouse event when mouse is clicked on desktop and not on any java frame. Can I
    trap these events. If yes, how ?
    Please help me if u know how to do this?
    Thanks
    Dhiraj Deshmukh

    Normally its not possible to trap events which are not initiated by an awt/swing-component, BUT you can try to get it by using systemproperties or another but very difficult way is to put a glasspane on the complete desktop or put the desktop into a container. you can try, but i do really not know it works or not
    Little hint: i think there exists a method getDesktopProperties()

  • New event without any photos inside

    I have problems in creating new events in my photo library. When I drag some pictures into Iphoto and create a new event, this folder does not include any photos available (it's empty), while its preview (in the first page) of iphoto is related to an event which already existed in my library.

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - from the resulting first aid window repair permissions, rebuild thumbnails  and if necessary rebuild your database

  • How can I create a new event without it automatically being an all-day event?

    When I create a new event in iCal, it automatically creates an all-day event.  (By create, i mean double-clicking in the month view.)  Is there any way to change it back to hourly when you create an event, like in Snow Leopard?  Although this is easy to get around, it's just annoying as I rarely create all day events.

    I was really frustrated by this change in Lion as I prefer to use the month view and I hate the way it defaults to an all day event.  So I was very pleased to find this solution in the Mac OS X Hints.  Simply type "Dinner at 6 pm" and it enters "Dinner" at 6 pm for one hour.  If you want anything other than an hour, put "6 - 8 pm" (or whatever period you want.  Brilliant.  Just wish Apple figured out a way to tell me that without having to search the communities here for an answer.
    Thanks Ferd II.

Maybe you are looking for