Dear all,
I need to develop component wise program on visual studio 2008 that works OpenFileDialog and SaveFileDialog on Class Library. I couldn't access OpenFileDialog inside Class library and i need to build DLL file finally.
i used the following code in form it works but i need on class library project
Dim myopendialog As New OpenFileDialog
With myopendialog
.InitialDirectory = "C:\"
.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"
.DefaultExt = "txt"
.Title = "Browse Text Files"
.FilterIndex = 2
.CheckFileExists = True
.CheckPathExists = True
If .ShowDialog = Windows.Forms.DialogResult.OK Then
txtRich.Text = File.ReadAllText(.FileName)
End If
End With
and also i couldn't import System.windows.form in Class library project.
Please help me. thank you!