Results 1 to 3 of 3

Thread: [2005] VB controls disabled help

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    47

    [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    47

    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
  •  



Click Here to Expand Forum to Full Width