blinking cursor in text box


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: blinking cursor in text box

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    blinking cursor in text box

    [Originally posted by Andrew Zuffi]

    I am able to display a text file with a vertical scroll bar enabled and have set KeyAscii = 0. What I want to get rid of is the blinking text cursor (or whatever it is called).

    The user only needs to scroll the text.

    Is there a way to do this using the text box or do I need to use another object?

    Andrew

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:blinking cursor in text box

    [Originally posted by Kumar]

    Hi Andrew,
    U need not want to change the control. U can do with text box itself. First u Make the text box
    "Locked" Property to "True" and remove the Code
    "KeyAscii=0" .
    To get rid of the Cursor from the control U just sent the focus to another control, U write the above code in the text box Gotfoucs event.

    Ex:
    Private Sub Text1_GotFocus()
    Control.SetFocus
    End Sub

    Revert Me,

    with regards.,
    Kumar.K

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:blinking cursor in text box

    [Originally posted by Aser]

    Easiest wasy of doing this wud be, on got focus of text box set focus to some other control.

    Private Sub Text1_GotFocus()
    Command2.SetFocus
    End Sub

    by this focus will never go to text box and even if u dont do keyascii=0 it will be okay,since text box will never retain focus.

    Hope this helps
    Aser
    myownfreewill@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center