naga jyothi

naga jyothi

  • NA
  • 62
  • 110.7k

I am using interaction.AppActivate() method used to run my application?

Sep 13 2012 7:03 AM
I am using interaction.AppActivate() method used to run my application.In my application menustrip control is used to run the companyInformation form that is one proceess and another process is  keyboard control is used in menustrip form but my probl

 string TitleName = "";


private void companyInformationToolStripMenuItem_Click(object sender, EventArgs e)
  {
  frmOrganizationDetails obj = new frmOrganizationDetails();
  TitleName = obj.Text;
  obj.ShowDialog();
  }





  public void keyboardcontrol1_UserKeyPressed(object sender, KeyboardClassLibrary.KeyboardEventArgs e)
  {
  if (TitleName != string.Empty)
  {
  Interaction.AppActivate(TitleName);
  SendKeys.Send(e.KeyboardKeyPressed);
  }
  }