Hello i have problem with wpf (c#) project. this is my source
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
MessageBox.Show("Test");
}
}
}
i want to run my program
MessageBox.Show("Test");
after windows form appears ... but in this code when i start the program, just first show Test in message box and after that windows form appears ! what should i do to first windows form appears and after that a message box open to show the (Test)? i am using visual studio 2015 (WPF) project
You should write your code in the
Window_Load
event:EDIT: To work with longer operations like (used a function with more than 10 function inside as you wanted) you could use
ThreadPool
like this: