By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,065 Members | 1,560 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

Panel Enabled

P: n/a
my panel got 10 buttons,
Iwant to disable 8 but enabled 2 buttons.
myPanel.Enabled = false
button3.enabled = true
button6.enabled = true

I found that button3 &button6 cannot be enabled = true, Anybody know why ??
I don't understand ..
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Ya got buttons on a panel
Ya disable the panel - the buttons on it get disabled - just what one
expects
put the button you want enabled on a different panel - or disable the
buttons and not the panel

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:ek*************@tk2msftngp13.phx.gbl...
my panel got 10 buttons,
Iwant to disable 8 but enabled 2 buttons.
myPanel.Enabled = false
button3.enabled = true
button6.enabled = true

I found that button3 &button6 cannot be enabled = true, Anybody know why ?? I don't understand ..

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
Nov 20 '05 #2

P: n/a
Agnes,

You disable the panel, not the controls on the panel for that you have to
use the control array from that by instance roughly typed here again watch
typos
\\\
For each ctr as control in panel1.controls
if typeof ctr Is button then
ctr.disable
end if
next
///

I thought that disable Buttons have a side effect that seems to be in
Windows.

I am not sure however I thought that it was that when click on it when it is
disabled and it has focus, it will fire when you enable it again, so check
that if that goes right with you.

I hope this helps?

Cor
my panel got 10 buttons,
Iwant to disable 8 but enabled 2 buttons.
myPanel.Enabled = false
button3.enabled = true
button6.enabled = true

I found that button3 &button6 cannot be enabled = true, Anybody know why ?? I don't understand ..

Nov 20 '05 #3

P: n/a
Dear Cor,
I use the following method, and disable all the buttons first... and
then enabled two buttons..
Thanks

"Cor Ligthert" <no**********@planet.nl> bl
news:eY**************@TK2MSFTNGP11.phx.gbl g...
Agnes,

You disable the panel, not the controls on the panel for that you have to
use the control array from that by instance roughly typed here again watch
typos
\\\
For each ctr as control in panel1.controls
if typeof ctr Is button then
ctr.disable
end if
next
///

I thought that disable Buttons have a side effect that seems to be in
Windows.

I am not sure however I thought that it was that when click on it when it is disabled and it has focus, it will fire when you enable it again, so check
that if that goes right with you.

I hope this helps?

Cor
my panel got 10 buttons,
Iwant to disable 8 but enabled 2 buttons.
myPanel.Enabled = false
button3.enabled = true
button6.enabled = true

I found that button3 &button6 cannot be enabled = true, Anybody know why

??
I don't understand ..


Nov 20 '05 #4

P: n/a
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:eY**************@TK2MSFTNGP11.phx.gbl...
\\\
For each ctr as control in panel1.controls
if typeof ctr Is button then
ctr.disable
end if
next
///


That is fantastic. I've been looking for an easy way to iterate through an
unknown (variable) group of controls.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.