Solved

Cursor bigger in form

Posted on 2010-11-14
9
364 Views
Last Modified: 2012-05-10
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
Comment
Question by:fordraiders
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 9

Expert Comment

by:AnilKumarSharma
Comment Utility
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
 
LVL 9

Expert Comment

by:shadow77
Comment Utility
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
 
LVL 9

Accepted Solution

by:
shadow77 earned 400 total points
Comment Utility
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
 
LVL 3

Author Comment

by:fordraiders
Comment Utility
Sorry, I'm referring to an insertion point (the blinking vertical line in the text box)..
Thanksl
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 9

Expert Comment

by:shadow77
Comment Utility
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
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
0
 
LVL 3

Author Comment

by:fordraiders
Comment Utility
code cruiser its the insertion point I'm trying to get bigger...Sorry not the mouse cursor
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 100 total points
Comment Utility
0
 
LVL 3

Author Closing Comment

by:fordraiders
Comment Utility
Thanks to all...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now