Clone proxy object into current AppDomain

For my project I need to access resources from other .Net assembly, but I don’t want to keep them loaded, as I may load different version of the same assembly. So for doing that I create another AppDomain with which I use CreateInstanceAndUnwrap to create a custom class that descend from MarshalByRefObject. In that class […]

Windows regedit is overwriting my changes

I have an app written in C# using WPF. I want to start the app on windows startup, minimized, so I have this piece of code: Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(“SOFTWAREMicrosoftWindowsCurrentVersionRun”, true); key.SetValue(“MyApp”, “””+path+”” /minimized”); It writes correctly to the regedit “C:pathmyapp.exe” /minimized But when I restart the computer, it overwrites to C:pathmyapp.exe And opens the […]