Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

VS 2010 Carat Color Red

$
0
0
Hello everyone,

Im using this code to change the carat size to cover at least one character which works, however, how do i change the color or the carat from black to red?

Code:

Private Sub TextBox2_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.GotFocus
        CreateCaret(TextBox2.Handle, IntPtr.Zero, 10, TextBox2.Height)
        ShowCaret(TextBox2.Handle)
    End Sub

Cheers

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>