Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

Cursor bigger in form

vb.net 2008

Is there anyway to ge the Tab cursor bigger/bolder so it can be seen better while tabing through textboxes ?

Thanks
fordraiders
0
Fordraiders
Asked:
Fordraiders
  • 3
  • 3
  • 2
  • +1
2 Solutions
 
AnilKumarSharmaCommented:
Cursor represents the image used to paint the mouse pointer. A cursor is a small picture whose location on the screen is controlled by a pointing device, such as a mouse, pen, or trackball. When the user moves the pointing device, the operating system moves the cursor accordingly. So you cant assume the functionality like bolder etc with images.

Each cursor consists of a cursor bitmap and a mask bitmap.

You can create your own cursors and set them.  You can create your cursor from bitmaps.

http://www.codeproject.com/KB/graphics/ColorCursorFromBmp.aspx

http://msdn.microsoft.com/en-us/magazine/cc301524.aspx

http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.aspx



0
 
shadow77Commented:
If you are referring to the Insertion Point (the blinking vertical line in the text box), you can influence it slightly if you change the Font property in the text box to make your font larger and/or bold.
0
 
shadow77Commented:
For an empty TextBox, or one with the insertion point at the end of the text, you could add a space and select it (see code below for Enter event handler).  The inserted space will disappear when the user starts typing.

You would also need handlers for Leave and maybe TextChanged, plus a variable to tell you whether the user made changes or you should remove the space you inserted.  Or, depending on your application, you could always Trim your text when the Leave event fired.
Private Sub TextBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Enter
        If TextBox1.SelectionStart >= TextBox1.Text.Length Then
            TextBox1.Text += " "
            TextBox1.SelectionStart = TextBox1.Text.Length - 1
            TextBox1.SelectionLength = 1
        End If
    End Sub

Open in new window

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
FordraidersAuthor Commented:
Sorry, I'm referring to an insertion point (the blinking vertical line in the text box)..
Thanksl
0
 
shadow77Commented:
OK.  Both of my comments apply to the insertion point.  It's not an image and I could not find a way to access it directly.

You could write your own class based on TextBox but that may be more than you want to undertake.
0
 
CodeCruiserCommented:
0
 
FordraidersAuthor Commented:
code cruiser its the insertion point I'm trying to get bigger...Sorry not the mouse cursor
0
 
FordraidersAuthor Commented:
Thanks to all...
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now