jj
This commit is contained in:
@@ -4,9 +4,15 @@ Public Class frmDocView
|
||||
Private LogConfig As LogConfig
|
||||
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
|
||||
DocumentViewer1.LoadFile(OpenFileDialog1.FileName)
|
||||
If String.IsNullOrEmpty(TextBox1.Text) Then
|
||||
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
|
||||
TextBox1.Text = OpenFileDialog1.FileName
|
||||
DocumentViewer1.LoadFile(TextBox1.Text)
|
||||
End If
|
||||
Else
|
||||
DocumentViewer1.LoadFile(TextBox1.Text)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub frmDocView_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
Reference in New Issue
Block a user