Archive Browser
Download TextBoxTabStops.zip, last updated 25/05/2019 (56.09 KB)
Download- md5: c19ff63a08cba2440f23c149be49025d
- sha1: e41fa65000e766cd66ed012744340b6fe53df4b4
- sha256: d3b220e4c5e4753d7b761ee0eb978600bdc14f6a9bbee50117e66a1a052d642c
using System;
using System.Runtime.InteropServices;
// Setting tab stops in a Windows Forms TextBox control
// https://www.cyotek.com/blog/setting-tab-stops-in-a-windows-forms-textbox-control
// This work is licensed under the Creative Commons Attribution 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
// Found this example useful?
// https://www.paypal.me/cyotek
namespace Cyotek.Demo.TextBoxTabStops
{
internal static class NativeMethods
{
#region Public Fields
public const int EM_SETTABSTOPS = 0x00CB;
#endregion Public Fields
#region Public Methods
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int[] lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, ref int lParam);
#endregion Public Methods
//[DllImport("user32")]
//public static extern int MapDialogRect(IntPtr hDlg, ref RECT lpRect);
//[StructLayout(LayoutKind.Sequential)]
//public struct RECT
//{
// public int left;
// public int top;
// public int right;
// public int bottom;
//}
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate