09 August, 2009

Chapter 8 project

In the btnClear_Click event handler, nine lines of code are used to change various labels, buttons, text boxes and list boxes from visisble to not visible. Isn't there a way of doing this in one line of code, i.e. so that you can say Me.(this and this and this and this).Visible = False??

1 comment:

  1. It's possible that we'll find out that you can do exactly that, but do you think it would make it that much easier?

    I think that having the code for each element on seperate lines helps with debugging and finding errors to some degree. While it's a pain in the kyber trying to enter it all in to the code, I think that might very well pale by comparison to trying to find an error when you have 9 elements placed in the one line of code.

    ReplyDelete