How to display the file name. size date etc in text boxes in Vb.net
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
when i click the open the button standard dialogbox opend but how to find the size,filename,dateof the selected file in the textboxes which i created in form
use fileinfo and have a look at its properties:
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim myfile As New System.IO.FileInfo(OpenFileDialog1.FileName)
textbox1.text = myfile.Name
textbox2.text = myfile.Length
textbox3.text = myfile.CreationTime
'and so on
End If"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)