DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links