How To Set The Title As Opened File Name To Form?

By Goniey N
Access over 40 UI widgets with everything from interactive menus to rich charts.

Set The Filename As Title Of Your Selected File From The OpenDialogBox...

If OpenFileDialog1.ShowDialog = DialogResult.OK Then
filename = OpenFileDialog1.
FileName
RichTextBox1.LoadFile(filename)
End If

'Set The Form Title Name As Filename.....
Me.Text = filename

How To Set The Title As Opened File Name To Form?  (437 Views)