473,529 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tabstop of a textbox

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 user clicks tabs to navigate
through the controls on the form, I don't want the readonly textbox to get
the focus. In VB6, I used to set the TabStop property to false. How can I
achieve this in ASP.Net?

Thanks.
-Nikhil
Nov 18 '05 #1
1 6055
Hi,
Set the TabIndex property of the TextBox server control to -1.

"Nikhil Patel" <np*************@hotmail.com> wrote in message
news:#r**************@TK2MSFTNGP09.phx.gbl...
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 user clicks tabs to navigate
through the controls on the form, I don't want the readonly textbox to get
the focus. In VB6, I used to set the TabStop property to false. How can I
achieve this in ASP.Net?

Thanks.
-Nikhil

Nov 18 '05 #2

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

Similar topics

0
1320
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 'linklabel') to popup form with text to add to assoc textbox. 'Tab-ing' through textboxes works fine - but labels that are links, though 'TabStop' is...
5
12047
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 used directly from your code. And sure enough it is not accessible.
2
6382
by: Bob Cummings | last post by:
Greetings I have a simple form from which I would like the user to make one of two choices, depending on what I am displaying in a text box. I want the use to have to make a choice so I have put the two choices in a groupbox as radio buttons. The problem is they can tab from radiobutton A to radiobutton B but not back to radiobutton A. ...
0
1145
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 in the pages 2 and 3. The focus doesn't switch when I hit the "Tab" key. Thanks, David
1
3070
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
5246
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 = fasle. I found a small sample showing how to that...
0
1428
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 opens, none of the radiobuttons are checked. If I tab through the textboxes, it tabs in the correct order without tabbing into the groupboxes. ...
0
816
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
5
1664
by: Anja N | last post by:
Hi all, I have a asp.net web page that hosts some htcs with input boxes on it. The viewLinkContent and tabStop properties are defaulted to true so that users can add text and tab through the input boxes within the HTCs. I have attached event "onfocus" to focus the first input box of the htc. Things work fine until users tab through or click...
0
7338
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7261
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7250
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5799
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4830
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3326
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3326
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
898
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
564
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.