Results 1 to 6 of 6

Thread: change the enabled of a button(plus another Q)

  1. #1

    Thread Starter
    Member frix199's Avatar
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece iamthebest: True
    Posts
    59

    Exclamation change the enabled of a button(plus another Q)

    hey!

    i have a button, and i want 2 changed it from disabled to enabled...
    help?

    and how can i change the style of a control (winid sais: "Style: 0x56000000" how can i change it to "0x56001000"??)

    thankz!!!


    Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: change the enabled of a button(plus another Q)

    Where is this button located? In your project? In another application?

  3. #3

    Thread Starter
    Member frix199's Avatar
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece iamthebest: True
    Posts
    59

    Re: change the enabled of a button(plus another Q)

    in the yahoo! private msg lol

    im not that noob so i dont know button1.enabled = true :P :P :P

    thankz for replying!


    Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: change the enabled of a button(plus another Q)

    I guess if you find the handle of the button you can use it in the EnableWindow API...

    VB Code:
    1. Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd As Long, ByVal fEnable As Long) As Long


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Member frix199's Avatar
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece iamthebest: True
    Posts
    59

    Re: change the enabled of a button(plus another Q)

    yyyyaaaaaayyyy!!!

    the greekie got it working! :P

    euxaristo manavo11!!!


    Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: change the enabled of a button(plus another Q)

    You're welcome

    Now that the question is answered, you can go to Thread Tools at the begining of the thread and select the Mark Thread Resolved option to show that the question has been answered.

    Parakalo


    Has someone helped you? Then you can Rate their helpful post.

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