473,425 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

What am I missing (TabStop)

Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ
Nov 16 '05 #1
5 12017
Are you in Winforms? It doesn't matter b/c you don't stop on tabs anyway.
"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:UT*******************@news-server.bigpond.net.au...
Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ

Nov 16 '05 #2
In WinForms, labels can't be a tabstop, so you don't need to set the
property.

However, you can use the TabIndex property of a label to provide a shortcut
key to another control that does act as a TabStop however.

For example:

TextBox1.TabStop = true;
TextBox1.TabIndex = 3;

Label1.TabIndex = 2;
Label1.Text = "&Some Value";

In your WinForm application, hitting Control-S should put focus right into
TextBox1. This assumes that you don't have another control with a TabIndex
of 3 also set and that you don't have other labels or menus with the
Control-S shortcut setup also.

"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:UT*******************@news-server.bigpond.net.au...
Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ

Nov 16 '05 #3
Am using winforms.
Tabs??
Dont want to be able to tab to a label.

"William Ryan eMVP" <bi**@NoSp4m.devbuzz.com> wrote in message
news:O6**************@TK2MSFTNGP09.phx.gbl...
Are you in Winforms? It doesn't matter b/c you don't stop on tabs anyway.
"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:UT*******************@news-server.bigpond.net.au...
Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ


Nov 16 '05 #4
Hi Michael

The problem is that I have a group box that has a label.
Normally I set the labels tabindex to be 900+ so it doesnt matter but in
this case it does because it is not doing anything becuase it is going to
the label and then presumably on to the next control in the group box which
is ???

**********
Solved.
**********

I set the tabindex to make the label before the textbox.
Problem is that this does not always work but I can make it work.
I set the focus to the next control in the keydown event of textboxes using
getnextcontrol and canfocus.
If the next control is a label this does not work because a label cannot
receive the focus.
Thats all right. If I always set labels in group boxes (or full stop) to be
the first items then it should be ok.
Hope I explained myself all right.
Probably not.

Thanks
JB :)

"Michael McGuire" <Mi**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
In WinForms, labels can't be a tabstop, so you don't need to set the
property.

However, you can use the TabIndex property of a label to provide a shortcut key to another control that does act as a TabStop however.

For example:

TextBox1.TabStop = true;
TextBox1.TabIndex = 3;

Label1.TabIndex = 2;
Label1.Text = "&Some Value";

In your WinForm application, hitting Control-S should put focus right into
TextBox1. This assumes that you don't have another control with a TabIndex of 3 also set and that you don't have other labels or menus with the
Control-S shortcut setup also.

"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:UT*******************@news-server.bigpond.net.au...
Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ


Nov 16 '05 #5
You can't stop on tabs so no worries there.
"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:oe*******************@news-server.bigpond.net.au...
Am using winforms.
Tabs??
Dont want to be able to tab to a label.

"William Ryan eMVP" <bi**@NoSp4m.devbuzz.com> wrote in message
news:O6**************@TK2MSFTNGP09.phx.gbl...
Are you in Winforms? It doesn't matter b/c you don't stop on tabs anyway.
"John Baro" <jo***@NOSPAMmesware.com.au> wrote in message
news:UT*******************@news-server.bigpond.net.au...
Where is my TabStop property.
I want to prevent tabbing to a label.
In the MSDN it shows

Label.TabStop Property
This member supports the .NET Framework infrastructure and is not

intended to be used directly from your code.

And sure enough it is not accessible.

HUH?

BJ



Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim Witt | last post by:
Ref: Win2000, .NET 1.1 I have a form: each line has textbox as input, ident label on left. For format purposes, each textbox is contained in a panel. Some labels are links (though not...
5
by: John Baro | last post by:
Where is my TabStop property. I want to prevent tabbing to a label. In the MSDN it shows Label.TabStop Property This member supports the .NET Framework infrastructure and is not intended to be...
1
by: Nikhil Patel | last post by:
Hi all, I need to allow users to copy the value of a TextBox but I don't want to allow them to edit the value. I am able to achieve this by setting the ReadOnly property to true. But now when the...
0
by: David-L. Nadeau | last post by:
Hi ! I have Windows form with a TabControl (3 TabPages). I set the TabStop and TabIndex property to all the textboxes in the 3 TabPages. In the first page, the functionality works fine but not...
1
by: Jon | last post by:
Hi, I can set the button.tabstop = false. but how do i clear the tabstop after the button has been clicked? the tabstop remains when the button has been clicked. thanks.
2
by: Sharon | last post by:
I have a DataGrid control with two columns. I want to prevent the user getting into the first (left) column by the Tab key, meaning; I need the cells of the left column to be set to TabStop =...
0
by: Rich | last post by:
Hello, I have a form that contains some textboxes and a couple of groupboxes that contain some radiobuttons. I have set the tabstop to false for all the radiobuttions. When the form originally...
0
by: rmprajapati | last post by:
Hi I have a Greed and it is al ready fill with some data in 1 column now I want to use TabStop or Block this column for user means User cant go in this column using tab or any thing Pls Help
4
by: 7stud | last post by:
Is smarttab one of these: 1) Expands tabs into the number of spaces set with tabstop at the start of a line, and uses a tabstop sized tab elsewhere. 2) Expands tabs into the number of spaces...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.