I have been searching up and down the web and unfortunately never came across an issue quite like mine, so here goes:
My C# WPF application won\'t show me no OpenFil
sometime [staThread]
not working, you can try this:
public void showOpenFileDialog()
{
OpenFileDialog im = new OpenFileDialog();
if (im.ShowDialog() == DialogResult.OK)
{
textBox1.Text = im.FileName;
}
}
private void select_button_Click(object sender, EventArgs e)
{
Thread newThread = new Thread(new ThreadStart(showOpenFileDialog));
newThread.SetApartmentState(ApartmentState.STA);
newThread.Start();
}