Search code examples
c#sendkeys

How to send "<" characters to Word documents (.doc, docx) using Sendkeys method


When i try to send "<" characters it decreasing characters punto only, and doesnt appear "<" char on document.

Could you please help me to solve this problem?

SendKeys.SendWait(Convert.ToChar(60).ToString());

or

SendKeys.SendWait("<");

Solution

  • I see that the problem about keyboard layout. When i set my keyboard language to English(US) from Windows. SendKeys.SendWait("<"); works fine on Word(doc,docx) documents.