SendKeys Kullanımı
SendKeys metodunu kullanarak, textBox a yazdığımız stringi NotePad yazılmasını sağlayacağız. Ayrıca
SendKeys.SendWait() metodu ilede mesajınızı direkt NotPad e yazdırabilirsiniz. Aşağıdaki şekli inceleyin.

Şekil 1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
       
        public Form1()
        {
            InitializeComponent();
       
        }
        private void button1_Click(object sender, EventArgs e)
        {
     
     Microsoft.VisualBasic.AppWinStyle stil = Microsoft.VisualBasic.AppWinStyle.NormalFocus; 
     int i;
   
     Microsoft.VisualBasic.Interaction.Shell(@"NotePad.exe", stil, false,-1);
    
     for (i = 0; i <= textBox1.Text.Length - 1; i += 1) {
        
         SendKeys.SendWait(textBox1.Text.Substring(i, 1));
        
         if (i > textBox1.Text.Length) {
        
    
             break; 
                 
}
     }
     
     // Bu kısımdada textboxta yazılan yazının altına
     //aşağıdaki mesajı ekliyoruz. Notepade ekliyecek...
    
     SendKeys.SendWait("{ENTER}");
     SendKeys.SendWait("Şimdilik bu kadar...Bahadır ŞAHİN");
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Text = "SendKeys...";
            this.MaximizeBox = false;
        }
    }
}
//Bir sonraki makalede görüşmek üzere. Bahadır