---
title: "Simulate typewriter effect in textbox"  
description: "Simulate typewriter effect in textbox"  
author: "Lady Bird Johnson"  
published: 2013-10-05  
updated: 2013-10-05  
canonical: https://www.mindstick.com/forum/1620/simulate-typewriter-effect-in-textbox  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Simulate typewriter effect in textbox

I've searched a lot but didn't found anything , what I want to know is how I can type into a [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) slowly ... I [mean](https://yourviews.mindstick.com/view/80768/what-does-real-minority-mean) for example , Typing letter by letter like if I was [writing](https://www.mindstick.com/articles/12997/5-essential-tips-on-resume-writing-for-business-analysts) it ...

## Replies

### Reply by Hank Greenberg

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));
  }
}
```


---

Original Source: https://www.mindstick.com/forum/1620/simulate-typewriter-effect-in-textbox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
