Q:

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 ?

A:

Have you tried ShowWindow?:
shan23EditBox.ShowWindow(FALSE);

