Simulate typewriter effect in textbox

Total Post:19

Points:133

C# 
C#
 4208  View(s)
Ratings:
Rate this:

I've searched a lot but didn't found anything , what I want to know is how I can type into a textbox slowly ... I mean for example , Typing letter by letter like if I was writing it ...

  1. Re: Simulate typewriter effect in textbox

    It sounds like you are trying to simulate typing text into a UI in C# and want it to go more slowly to look closer to what a human would type. If so then why not add artificial pauses in between sending key strokes?

    void TypeText(string text) {
    
      foreach (var c in text) {
        SendKeyStroke(c);
        Thread.Sleep(TimeSpan.FromSeconds(1));
      }
    }

      Modified On Mar-31-2018 06:03:08 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.