📜  c# 文本框选项卡列 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.028000             🧑  作者: Mango

代码示例1
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg,
    Int32 wParam, int[] lParam);
private const uint EM_SETTABSTOPS = 0xCB;

// Set tab stops inside a TextBox.
private void SetTextBoxTabs(TextBox txt, int[] tabs)
{
    SendMessage(txt.Handle, EM_SETTABSTOPS, tabs.Length, tabs);
}