geting for code

Recommended Answers

All 4 Replies

What kind of file are you trying to open?

Is it an office file, text file, datatbase, picture or what?

What kind of file are you trying to open?

Is it an office file, text file, datatbase, picture or what?

i m using for appointments so it may any of ms office document.
thank you..

hello !
Use openfiledialog to open ur required file use rich text box control or textbox control with multi lines ,

Regards
M.Waqas Aslam

Private Sub OpenFile(ByVal Filename As String)
        Try
                Dim fi As New FileInfo(Filename)
                Process.Start(fi.ToString)

        Catch ex As Exception
            MsgBox(ex.Message, MsgBoxStyle.Exclamation)
        End Try
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.