1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
[+] #region [Restliche Using-Direktiven]
*/
using System.Runtime.InteropServices;
/*
[+] #region [Restlicher WindowsForms-Code]
*/
private const int EM_SETTABSTOPS = 0x00CB;
[DllImport("User32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int[] lParam);
private void Form1_Load(object sender, EventArgs e)
{
int[] tabstops = new int[] { 32 };
SendMessage(textBox1.Handle, EM_SETTABSTOPS, tabstops.Length, tabstops);
textBox1.Invalidate();
}
|