views:

29

answers:

2

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 ?

+2  A: 

Have you tried ShowWindow?:

shan23EditBox.ShowWindow(FALSE);
David Relihan
technically, `shan32EditBox.ShowWindow(SW_HIDE);`
djeidot
+2  A: 

Hi.

Try something m_EditBoxCtrl.ShowWindow(FALSE);

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

Good luck!

mosg
Blv me, i tried googling, but apparently my search strings were not good enough :) . Btw, StackOverflow is faster than google as I'm finding now , thanks to u guys !!
shan23