Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor Properties

Status
Not open for further replies.

LouiseJ

Technical User
May 18, 2005
29
GB
Is it Possible to turn off the flashing of a cursor (or preferably render it invisible) on entering a textbox and reset the properties to default when the textbox loses its focus?

Thanks

LouiseJ
 


Private sub txtCountry_Exit(Cancel As Integer)
If IsNull(Me.txtCountry) Then
Me.txtCountry.Value = Me.txtCountry.OldValue
End If
End sub
_________________________________________________________

Or, I find this doesn't always work..

Private sub txtCountry_Click()
mstrCountry = Me.txtCountry'(module level variable)
Me.txtCountry = null '(easier for editting)
End Sub
__________________________________________________

Private sub txtCountry_Exit(Cancel As Integer)
If IsNull(Me.txtCountry) Then
Me.txtCountry.Value = mstrCountry
End If
End sub
 

And what does your post, Zion7, have to do with "turn(ing) off the flashing of a cursor?"

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Funny you ask missinglinq, my original post started off by saying "In regards to your second point...", but for brevity,
I left it as is, assuming one would get the point...?
 

I believe what LouiseJ means by "and reset the properties to default when the textbox loses its focus" is to return the cursor's properties to default, i.e. have the cursor re-appear as normal, after leaving the textbox.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
...speaking of "getting the point"?!

I think you're absolutely right missinglinq!
Thx!
 

Happy Holidays!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
How are ya LouiseJ . . .

If your involved in data entry and moving from textbox to textbox the cursor would remain hidden!

[blue]How is the user to know where they are?

Whats the point?[/blue]

Calvin.gif
See Ya! . . . . . .
 
Actually this occurs in some apps online, especially on login screens, and I hate it for just that reason! There's no blinking cursor anywhere and you have to start typing to see where the @#$% thing is! Sometimes it's sitting in the signin box and sometimes it's not!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top