 
 
TextBox ta Telefon Formatında Yazmak
TextBox a girilen rakamları telefon formatında göstereceğiz.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
         string telefonno = "02121234567";
         string str = telefonno.Insert(1, "-");
         string str2 = str.Insert(5, "-");
         textBox1.Text = str2;
        //Programı çalıştırdığımızda
       //textBox a girilen no 0-212-1234567
      //şeklinde görülür.  
       }
    }
}
//Bir sonraki makalede görüşmek üzere. Bahadır