This is probably me being daft. But I can't figure it out. It appears that the events of my PB add-in aren't firing. I've created a docked window add-in using the VS2005 template. Based on the post for using the designer to create the ID I've include the creation of the view in the Show event. However, it does not run; if I call the method from the OnConnection method then it runs no problems. I've also had the same problem with the DisplayActivate method. I have absolutely no idea how to fix this.
I attached the code as a txt file; I wasn't able to post it into the message with an acceptable format as all the advanced functions kept throwing a js error.