Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

I need to develop componet wise program on visual studio 2008 that works OpenFIleDialog

$
0
0

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!


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>