Z
Zach
I want to get rid of the carot on the screen. Below is my code which isn't
getting rid of the carot.
Please help.
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace E_sys
{
public partial class CSbox : Form
{
[DllImport("User32.dll")]
static extern Boolean HideCaret(System.IntPtr hWnd);
public CSbox(string text)
{
InitializeComponent();
textBox1.Text = text;
textBox1.SelectionStart = 0;
HideCaret(textBox1.Handle);
}
}
}
getting rid of the carot.
Please help.
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace E_sys
{
public partial class CSbox : Form
{
[DllImport("User32.dll")]
static extern Boolean HideCaret(System.IntPtr hWnd);
public CSbox(string text)
{
InitializeComponent();
textBox1.Text = text;
textBox1.SelectionStart = 0;
HideCaret(textBox1.Handle);
}
}
}