|
-
May 3rd, 2008, 04:59 AM
#1
Thread Starter
Member
[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
-
May 3rd, 2008, 05:19 AM
#2
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:
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.
-
May 3rd, 2008, 01:24 PM
#3
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|