problem with SendKeys

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dawn

    problem with SendKeys

    Hi,

    I'm trying to send input from one form into another in my c# app. I manage
    to make the form I'm trying to input to active (or at least I think so, cuz
    when I press keys on my keyboard they enter into that form), but
    SendKeys.Send doesn't seem to do anything.

    This is my code :

    int y = listBox1.Items. Count;

    int a = 0;

    string x;

    for (int z = 0; z < y; z++)

    {

    x = listBox1.Items[z].ToString();

    SendKeys.Send(x );

    SendKeys.Send(" {ENTER}");

    }



    Anyone know why this isn't working?



    Thanks,



    Bart.



Working...