Answers for "start window wpf c#"

C#
5

open new window c# wpf

private void Button_Click(object sender, RoutedEventArgs e)
{
    window2 win2 = new window2();
    win2.Show();
}
Posted by: Guest on March-14-2020
0

start wpf application when windows start

Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
string str = Assembly.GetExecutingAssembly().Location;
key.SetValue("Camaleone", str);
Posted by: Guest on January-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language