Open File Dialog Box
Dear USers,
This is the code I have used to create a program which I will eventually let the user pick their own programs and then run them. My problem is still with the Open File Dialog Box, I would like to have a little more control, adn not show the full extnesion, as well at the show then on one line each. The Text1 is a textbox with multiple lines.
*****************
Private Sub cmdOpenFileDialog1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOpenFileDialog.Click
Dim sMsg As String
OpenFileDialog1.ShowDialog()
If OpenFileDialog1.FileName > "" Then
Text1.SelectedText = Chr(10) & OpenFileDialog1.FileName & Chr(10)
Else
sMsg = "you did not choose a file"
End If
*********************
Please help???!!!!
|