?
Solved

LinkLabel TabStop Question

Posted on 2004-10-23
1
Medium Priority
?
993 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
Comment
Question by:Gregory Miller
1 Comment
 
LVL 10

Accepted Solution

by:
prakash_prk earned 200 total points
ID: 12410811
put this line form load event

 Me.lnkFirst.TabStop = False

Regards
Prakash
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…

592 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