static void SetNarrowTabs(TextBox text) { const int EM_SETTABSTOPS = 0xcb; SendMessage(text.Handle, EM_SETTABSTOPS, new IntPtr(1), new int[] { 12 }); }