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...

Recommended Answers

All 2 Replies

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

OMG, thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.