What's wrong with this code [Xdocument.SaveAs("C\")] =
Variable 'Xdocument' is used before it has been assigned a value. A null reference exception could result at runtime.
Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup
AddHandler ...