473,386 Members | 1,602 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,386 software developers and data experts.

Panel Enabled

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
4 1486
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
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
Dear Cor,
I use the following method, and disable all the buttons first... and
then enabled two buttons..
Thanks

"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Skidmore | last post by:
I am building an application that will fade one panel to another panel. Both panels will have picture boxes in them (thumbnails). This is what I have tried: private void...
0
by: Francesco | last post by:
Hi all, I have some forms with Panels that contain some input controls (TextBox, ComboBox and RadioButton). What I have to do is permit to the user to view the content of the form without...
5
by: Robert Phillips | last post by:
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the...
4
by: louise raisbeck | last post by:
Hi there, I have put some web controls, textboxes and drop down lists, in a Panel, so that under a certain condition i can disable all fields for input. I read in Help that disabling a Panel...
4
by: Thiru .Net | last post by:
hi wagner, i have a doubt in panel control in windows application. i have a panel control wherein i have put a picturebox control. i show picture into picturbox control. now i need to zoom in...
1
by: =?Utf-8?B?RGF2aWQgQWJpdGJvbA==?= | last post by:
Hi everybody, I have a panel which of course contains controls of course. It is set to autoscroll. Problem is if the panel is disabled, the scrollbar shows up but it dows not respond to the...
6
by: Jerry West | last post by:
I'm a newbie to .NET from VB6. I have a Form with a Panel control on it. When the Form loads it maximizes and so does the Panel control. I then fill an array with the path to images at a...
0
by: nityaprashant | last post by:
hello.. i used ajax update panel in my cart form now i want to use paypal button for redirect online transaction because of ajax update panel round trip is not possible.. so paypal button gives...
2
by: kulabhishek | last post by:
Hello all. I have developed one user control "Grid" in C# and I am using it in another user control inside one panel. The AutoScroll property for the panel is enabled. When the height or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.