Solved

LinkLabel TabStop Question

Posted on 2004-10-23
936 Views
Last Modified: 2008-03-17
I am using a LinkLabel on a Windows Application Form and wish to disable the TabStop function. I have tried the following but the application still gives focus to the control if the TabIndex for the control is next in order.

        '
        'lnkFirst
        '
        Me.lnkFirst.Location = New System.Drawing.Point(88, 8)
        Me.lnkFirst.Name = "lnkFirst"
        Me.lnkFirst.Size = New System.Drawing.Size(48, 16)
        Me.lnkFirst.TabIndex = 0
        Me.lnkFirst.TabStop = False
        Me.lnkFirst.Text = "First"
        Me.lnkFirst.TextAlign = System.Drawing.ContentAlignment.BottomLeft

I do not wish to use Me.lnkFirst.Enable = False for obvious reasons, I want the link to function. I just want to stop the Tab key from assigning focus to the LinkLabel control. By the way, this is just one of 20 LinkLabel controls on the form. This seems like it should be pretty simple but I am stumped.

Thank you in advance,
-greg
0
Question by:Technodweeb
    1 Comment
     
    LVL 10

    Accepted Solution

    by:
    put this line form load event

     Me.lnkFirst.TabStop = False

    Regards
    Prakash
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    845 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

    6 Experts available now in Live!

    Get 1:1 Help Now