debug through it and make sure your code is getting executed as you're expecting it to, because that should work just fine.
also, i thought i'd throw out, if you have multiple controls you want to show and hide, i'd suggest looking at my <a href="http://www.windowsforms.net/ControlGallery/ControlDetail.aspx?Control=251&tabindex=9">ControlArray</a> Component to group controls and just call one line of code for each group. |