0

Hi,

My combobox is filled with file names (without extension) of all the .txt files in folder "c:/files".

When I select one file name from that combobox, how can I show that files full path in textbox or label?


Sorry for my bad english...

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by nerkla
1

like:

Private Sub comboBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
	Dim fileName As String = comboBox1.SelectedItem.ToString()
	textBox1.Text = [String].Format("{0}{1}{2}", "C:\files", fileName, ".txt")
End Sub
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.