TCSGrad
TCSGrad

Reputation: 12128

How to make an edit box disapper at runtime (NOT gray) in MSVC 2008 using MFC?

I want to make an EditBox disappear completely when the user selects a particular iption, instead of just graying it out. I tried using EnableWindow(false), but that just grays it out. I want the user to not see the control at all...can anyone help, or is this not possible in MSVC 2008 ?

Upvotes: 2

Views: 105

Answers (2)

mosg
mosg

Reputation: 12391

Try something m_EditBoxCtrl.ShowWindow(FALSE);

And by the way, google answers more faster on such kind of questions. :)

Good luck!

Upvotes: 2

Robben_Ford_Fan_boy
Robben_Ford_Fan_boy

Reputation: 8738

Have you tried ShowWindow?:

shan23EditBox.ShowWindow(FALSE);

Upvotes: 2

Related Questions