Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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();
	}
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# prototype function 
Csharp :: Find Center Of Transforms, Points, Multiple Objects 
Csharp :: return last row if all other condition fails in linq c# 
Csharp :: c# check if username and password is true 
Csharp :: delegates in c# 
Csharp :: umbraco cannot start. a connection string is configured but umbraco cannot connect to the database. 
Csharp :: encode < for xml 
Csharp :: unity custom editor draw line in scene 
Csharp :: Connect To MongoDB From A Different Machine 
Csharp :: initialization of dictionary in other forms c# 
Csharp :: asp.net core reverse engineer database 
Csharp :: itext7 c# memorystream 
Csharp :: get web api relative path 
Csharp :: dapper execute with list of ids 
Csharp :: tee into file 
Csharp :: k8s You must be logged in to the server (Unauthorized) 
Csharp :: REMOVE BOTTOM TAB XAMARIN FORMS 
Csharp :: c# create dll runtime 
Csharp :: WPF raotate Icon 
Csharp :: c# methods 
Csharp :: poems 
Csharp :: Open Windows Explorer to a certain directory from within a WPF app 
Csharp :: C# Printing Variables and Literals using WriteLine() and Write() 
Csharp :: Datagridview causing IndexOutOfRangeException when clicked upon 
Csharp :: player ToJson unity 
Csharp :: c# lernen kostenlos 
Csharp :: extension method c# 
Csharp :: unity int to bool 
Csharp :: rating iOS game in unity 
Csharp :: unity3d sort list 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =