|
![](/i/fill.gif) |
in C# Create a new form, name it Form7
Replace the template code with the following code:
///////////
public partial class Form7 : Form
{
[System.Runtime.InteropServices.DllImport("User32.dll")]
private static extern int CreateCaret(IntPtr hWnd,
IntPtr hBitmap,
int nWidth,
int nHeight);
[System.Runtime.InteropServices.DllImport("User32.dll")]
private static extern int ShowCaret(IntPtr hWnd);
public Form7()
{
InitializeComponent();
CreateCaret(this.Handle, this.Icon.ToBitmap().GetHbitmap(),
0, 0);
ShowCaret(this.Handle);
}
}
//////////
Run it...
I've never ever seen any program use a bitmapped caret before. Ever.
Windows is capable of it, and it's kinda neat, but I've never ever seen
it used anywhere...
--
~Mike
Post a reply to this message
|
![](/i/fill.gif) |