I always forget how this should work. So here its is quick and easy...
To determine the data type of an object at runtime you can use the TypeOf() function.
For example :
My blog has moved!
You should be automatically redirected in 6 seconds. If not, visit
http://www.f5todebug.wordpress.com
and update your bookmarks.
The ramblings of a SharePoint and .net solution developer
A colleague of mine asked me last week to take a look at some deployment issues with VSTO 2005 customizations. I did do some searching and there is lots of information out there for all kinds of scenarios but there is some misleading stuff too. I thought it may be worthwhile to post some details about the method I used to get this working.
Note: There are many different deployment scenarios that you may come across but this is the way that I dealt with it.
Public Class ThisDocument
Private Sub ThisDocument_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup
MessageBox.Show("This customization has been deployed!", "Success")
End Sub
Private Sub ThisDocument_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown
End Sub
End Class
I hope you find this useful. I have written it rather fast so I may revisit this if it gets a lot of negative comments. I would have found this really useful a couple of days ago.
"I'm just a developer, like you, who is finally trying to give a little back to the development community, which has helped him so well in the past."