CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Disable EditBox programaticly

    I want to disable an editbox based on other variables on the fly


  2. #2
    Join Date
    Apr 1999
    Posts
    15

    Re: Disable EditBox programaticly

    Use GetDlgItem( IDC_EDIT )->EnableWindow( FALSE )

    1st

  3. #3
    Guest

    Re: Disable EditBox programaticly

    Hello,
    What you need to do is:
    1. Get a pointer to the Edit control using GetDlgItem(nCtrlID) function.
    2. Call the EnableWindow function for that control pointer.



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

Featured