Hello everyone
I'm trying to upload multiple files, so my first componet consist of a user control with an upload multiple files class:
public void opendialog(string ext, string initdir, string titulo)
{
//System.Threading.Thread.CurrentThread.ApartmentState = System.Threading.ApartmentState.STA;
System.Windows.Forms.OpenFileDialog dialog = new System.Windows.Forms.OpenFileDialog();
string strFileName = String.Empty;
dialog.Filter = ext;
dialog.InitialDirectory = initdir;
dialog.Title = titulo;
try
{
System.Threading.Thread.CurrentThread.SetApartmentState(System.Threading.ApartmentState.STA);
//System.Windows.Forms.DialogResult dialogResult = dialog.ShowDialog();
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
}
...
Go to the complete details ...