you can get the number of the selected line with the expression "Get selected line number" or ListBox.SelectedLine
+ ListBox: Double clicked
-> Text: Set text to ListBox.SelectedLine
This would set the textbox to the current line number selected by the double click.