ok I found it but I am getting a thread error on showdialog
error msg:
"Current thread must be set to single thread apartment (STA) mode before OLE
calls can be made. Ensure that your Main function has STAThreadAttribute
marked on it. This exception is only raised if a debugger is attached to the
process."
code:
Dim ofd As New Windows.Forms.OpenFileDialog
ofd.Filter = "Text files (*.txt)|*.txt|" & "All files|*.*"
If ofd.ShowDialog() Then
End If
"De kessé" <De*****@anonyme.com> wrote in message
news:yN******************@wagner.videotron.net...
Im trying to do this from ASP.NET and it does not work.
Dim ofd As New OpenFileDialog
Openfiledialog is not there.
But I can find it in the object browser.
In my web config i can see this
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
What am i missing to use that openfiledialog?