Les,
* Les Hughes said:
I am actually a fan of seeing the designer code, I find it easier to
tweak and debug by looking at the direct code.
If there is a need to debug the code, I agree. If the designer is
perfect enough in order to make looking at the code unnecessary, I don't
need to be able to take a look at the designer generated code. For
example, in VB6 the designer generated code was stored in a different
format (in declarative form) at the beginning of form files. The VB
editor didn't show this code, but using a text editor and opening the
form file it was easy to see what's going on behind the scenes.
A few more notes on 2005, I found that it:
- Compiled my code faster (a big solution with about 18 projects in it)
- Compiled programs ran faster, database stuff seemed faster too.
- Compiled Programs at less ram.
Anyone else experience this? Also, what are your thoughts on hiding
I didn't play around with 2005 and large projects. I didn't yet have
enough time to see all the new features of the VB programming language
;-).
the designer code? Does anyone know if you can 'switch it back on'
somewhere?
Yes, you can do that by clicking the "Show all files" button in solution
explorer, AFAIR. Then you will see that each of the form classes has a
partial class that includes the constructor, the control initialization
code and some other stuff.