I have put some code inside of the public MainWindow() {}
but I kept getting some obscure XAML parsing errors as soon as I did that (not on my computer but on 3 others I've tried it on)
Is there a preferred way to run code AS SOON as the application starts?
The theory is I want it to call home and ask it it's ok to start. If it's not, I want the app to close out. Call it a makeshift copy-protection.
wpf
tag was added by me, because of the talk about XAML errors andMainWindow
. – GaltonInitialiseComponent()
call? And what is the error you are getting, you can read the InnerException by clicking View Error on your error popup. – Consent