K
kimiraikkonen
Hi,
Vb.net 2005 express i've been working, the problem is: I use
openfiledialog to browse files, i created some code to execute file
with OK button, no problem. But if i press "cancel" button as the
result of openfiledialog box, for example my filename's are added into
listbox or my audio file is being played from the beginning.
To explain better:
openfileplaylist.ShowDialog()
ListBox1.Items.Add(openfileplaylist.FileName)
1-That code adds file path into list box if click OK, but if i click
"cancel" it adds "OpenFileDialog1" text into listbox. Why?
2-Also i want my files listed only as "filenames", not full path like
c:\blabla\blaba\kklj\bla.mp3.
These 2 questions are very important for me.
Thanks for the answer from now.
Vb.net 2005 express i've been working, the problem is: I use
openfiledialog to browse files, i created some code to execute file
with OK button, no problem. But if i press "cancel" button as the
result of openfiledialog box, for example my filename's are added into
listbox or my audio file is being played from the beginning.
To explain better:
openfileplaylist.ShowDialog()
ListBox1.Items.Add(openfileplaylist.FileName)
1-That code adds file path into list box if click OK, but if i click
"cancel" it adds "OpenFileDialog1" text into listbox. Why?
2-Also i want my files listed only as "filenames", not full path like
c:\blabla\blaba\kklj\bla.mp3.
These 2 questions are very important for me.
Thanks for the answer from now.