Revealing Application Events
Posted
Tue, May 24 2005 13:19
by
bill
One of the really cool new features of VB.NEt 2005 is it's Application Framework which allows you to easily wire up to major Application Events. One problem i found with it though is that code is often hidden, and you have to go via the project properties to get at it. It feels a bit like someone hiding the Sub Main, and makes it not obvious as to what happens when the project loads etc.
So today, I noticed on Rob Copeland (who also has comments turned off, what up with that)'s blog a mention of a conversation he had with Paul Kuklinski and Jay Schmelzer about this very issue.
<twilight zone music>
Could this be in relation to the conversation I had with them a week or two ago ?
</twilight zone music>
Way cool in any case to hear it will be fixed 
In the meantime, here's the work around I use:
- In Solution Explorer, click on the show all files button. IF you are happy with that view, you're done 
- If you want to make it more obvious for those who don't like that view, simply drag ApplicationEvents.vb out of the "Project" folder into the root folder for your project. Note when you uncheck the "Show All Files", the ApplicationEvents.vb file may still hide. This seems to be a caching problem with the associated hide/show code and Solution Explorer, BUT it will show all the time next time you open the solution.
Now if we can only get them to give us the *option* to show the references node all the time as well 