CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    238

    textbox not grayed when disabled ..

    Hi !

    I'm a VC++ programmer and I need to deal with a small VB(6)-program for a
    project I am working on.
    Could one of you VB-Gurus pls tell me why my textboxes are not grayed when
    I set them to disabled state ?? This shouldn't be a hard one ...

    Thanks for your help,

    Matthias.

    I had a thought,
    You know, I thought it a lot,
    I thought I was smart,
    Now I know that I'm not

    - The Presidents Of The United States Of America

  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: textbox not grayed when disabled ..

    This is just by design, instead the Text itself is grayed.
    If you want the background of the Textbox grayed you could change it yourself, eg.

    Text1.BackColor = Text1.BackColor = RGB(192, 192, 192)

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  3. #3
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    238

    Re: textbox not grayed when disabled ..

    Hi !

    thanks for your answer.
    I still think this strange way for a textbox to behave.
    When creating, showing and then disabling a textbox using
    the Windows-API, the textbox is displayed grayed.
    Why not when using VB ??

    Anyone else got any hints on this ??


    Regards,

    Matthias.



    I had a thought,
    You know, I thought it a lot,
    I thought I was smart,
    Now I know that I'm not

    - The Presidents Of The United States Of America

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