Horje
closing main window after clicking on a button that opens another window in wpf Code Example
closing main window after clicking on a button that opens another window in wpf
public partial class MainWindow : Window
{
	public MainWindow() 
	{
		InitializeComponent();
	}
	private void Button_Click(object sender, RoutedEventArgs e) 
	{
		Window1 win1 = new Window1();
		win1.Show();
		this.Close();
	}
}




Csharp

Related
c# windows forms how to get controls in gropu box Code Example c# windows forms how to get controls in gropu box Code Example
c# don't scroll up after onclick Code Example c# don't scroll up after onclick Code Example
difference between eager and lazy loading entityframwork Code Example difference between eager and lazy loading entityframwork Code Example
c# task call more web api in parallel Code Example c# task call more web api in parallel Code Example
username and password into base64 encoding c# Code Example username and password into base64 encoding c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9