OpenFileDialog and BringToFront()

  • Thread starter Thread starter Daniel Jeffrey
  • Start date Start date
D

Daniel Jeffrey

I need to be able to call OpenFileDialog.BringToFront()

Is this possible?

Due the way I am calling it, it does not come to the front of the screen.

Thanks,

Daniel
 
hi,
i don't know why it is showing.
OpenfileDialog fil=new OpenfileDialog();
fil.Showdialog();

try this. if it won't match your requirement then please try to send your
source code( main block only).

thanks
 
string TheFile = "";
OpenFileDialog OpenFile = new OpenFileDialog();
OpenFile.InitialDirectory = "c:\\";
OpenFile.Filter = "txt files (*.txt)|*.txt|CSV files (*.csv)|*.csv|All
files (*.*)|*.*";
OpenFile.FilterIndex = 2;
OpenFile.RestoreDirectory = true;
if (OpenFile.ShowDialog() == DialogResult.OK)
{

TheFile = OpenFile.FileName;
}

The problem isnt here, it is due to the fact that my program is opened and
hidden by a 3rd party application. This application enables developers to
program screens in the program using COM calls.

Therefore my program is never seen, but when this screen opens it attaches
to the hidden form, hence the problem.

Thanks,

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top