|
 |
aspx_beginners thread: How to lock all the controls
Message #1 by Ashwini.Phalle@l... on Tue, 16 Apr 2002 16:39:17 +0530
|
|
I want to lock all the controls on a perticular page in certain conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one by
one.
Thanks in advance
Message #2 by "Kyle" <Kyle@T...> on Tue, 16 Apr 2002 07:16:56 -0400
|
|
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #3 by Ashwini.Phalle@l... on Tue, 16 Apr 2002 16:48:42 +0530
|
|
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners] RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #4 by "Kyle" <Kyle@T...> on Tue, 16 Apr 2002 07:38:24 -0400
|
|
Ashwini,
Locking as I'm describing it relates to the designer mode to prevent
accidentally moving positioned controls. It doesn't relate to run time
mode. What do you mean by lock? What are you trying to accomplish?
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:19 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #5 by "Kyle" <Kyle@T...> on Tue, 16 Apr 2002 07:44:01 -0400
|
|
I think what you may be looking for is "Anchor". You set the anchor
property for each control. When you resize a form the Anchor property
determines which side or sides of the form the control remains the same
distance from. Is this what you are looking for?
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:19 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #6 by Ashwini.Phalle@l... on Tue, 16 Apr 2002 17:13:19 +0530
|
|
by lock I mean making them noneditable.
We do it for textbox by setting it's Readonly property to true.I want to do
the same for all the controls on the form irrespective of their type.
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners] RE: How to lock all
05:08 PM the controls
Please respond
to
"aspx_beginner
s"
Ashwini,
Locking as I'm describing it relates to the designer mode to prevent
accidentally moving positioned controls. It doesn't relate to run time
mode. What do you mean by lock? What are you trying to accomplish?
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:19 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #7 by "Kyle" <Kyle@T...> on Tue, 16 Apr 2002 07:55:42 -0400
|
|
The only property I can think of that would be common to all controls is
the Enable property and if you set that to false all controls would be
non-editable. You could even do it in a foreach loop through all
controls on a form. That does leave you with the grayed out controls
though which may not be the effect you are looking for. Other than that
you would have to handle each control programmatically. Take a radio
button as an example, since it has no Readonly property you would have
to programmatically control when it would be non-editable.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:43 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
by lock I mean making them noneditable.
We do it for textbox by setting it's Readonly property to true.I want to
do
the same for all the controls on the form irrespective of their type.
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
05:08 PM the controls
Please respond
to
"aspx_beginner
s"
Ashwini,
Locking as I'm describing it relates to the designer mode to prevent
accidentally moving positioned controls. It doesn't relate to run time
mode. What do you mean by lock? What are you trying to accomplish?
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:19 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
Message #8 by Ashwini.Phalle@l... on Tue, 16 Apr 2002 17:40:35 +0530
|
|
Kyle
if I create an object pf system.web.ui.controls and for each object on
page.controls , there is not enable property which can be set to make it
noneditable
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners] RE: How to lock all
05:25 PM the controls
Please respond
to
"aspx_beginner
s"
The only property I can think of that would be common to all controls is
the Enable property and if you set that to false all controls would be
non-editable. You could even do it in a foreach loop through all
controls on a form. That does leave you with the grayed out controls
though which may not be the effect you are looking for. Other than that
you would have to handle each control programmatically. Take a radio
button as an example, since it has no Readonly property you would have
to programmatically control when it would be non-editable.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:43 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
by lock I mean making them noneditable.
We do it for textbox by setting it's Readonly property to true.I want to
do
the same for all the controls on the form irrespective of their type.
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
05:08 PM the controls
Please respond
to
"aspx_beginner
s"
Ashwini,
Locking as I'm describing it relates to the designer mode to prevent
accidentally moving positioned controls. It doesn't relate to run time
mode. What do you mean by lock? What are you trying to accomplish?
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:19 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: How to lock all the controls
thanx Kyle but I want to lock the controls programatically in cercain
contions only.
how to do that?
"Kyle"
<Kyle@T... To: "aspx_beginners"
e.com> <aspx_beginners@p...>
cc:
16/04/2002 Subject: [aspx_beginners]
RE: How to lock all
04:46 PM the controls
Please respond
to
"aspx_beginner
s"
Take the mouse cursor and draw a box around all of the controls to
select them all. When they are selected, right click and select lock.
There probably is a way to select all controls at one time with the
keyboard (sorry I haven't done that) and then the lock would apply to
all controls then as well.
Kyle
-----Original Message-----
From: Ashwini.Phalle@l...
[mailto:Ashwini.Phalle@l...]
Sent: Tuesday, April 16, 2002 7:09 AM
To: aspx_beginners
Subject: [aspx_beginners] How to lock all the controls
I want to lock all the controls on a perticular page in certain
conditions,
may be if it is accessed in view mode.
can it be done at once for all the controls instead of locking them one
by
one.
Thanks in advance
|
|
 |