[2005] VB controls disabled help
Hello,
I have a primary form (form1) and with a button I make visible a second form (form2). The problem is that when I put a control (eg. button) on the form when I debug this control is disabled, on the properties I have choose to be enabled by default. How can I correct this?
Thank you
Kyriakos
Re: [2005] VB controls disabled help
We need to strive for clarity in our posts to avoid confusion. You mention two forms and then talk about a Button on the form. I'm guessing that you mean the second form, but I've guessed wrongly in the past. I'm imagining that you meant something like the following:
Quote:
On my primary form (Form1) I have a Button. When I click that Button I display a second form (Form2). On Form2 I have a Button. That Button is disabled but I have set its Enabled property to True. Does anyone know why this would happen.
If that is an accurate reflection of your situation then either you have disabled the Button or a container that it's in. Is Form2 itself disabled? Does it contain any Panels or the like that are disabled? If neither of those are true then it must be the Button itself. In that case you can handle the EnabledChanged event of the Button to see when the Enabled property gets changed.
Re: [2005] VB controls disabled help
Yes,
I mean on second form, I will try to see if I have the form disabled.
Thank you