Search code examples
vb.netopenfiledialog

Using a long filename, the FileDialog defaults to showing only the end. How to make it start at the beginning?


I want to suggest two common filename syntaxes whenever this OpenFileDialog appears.

Setting the FileName:

dlg.FileName = "True Up -> S-CUSTXXX-YYYYMM-R; Non True Up -> CUSTXXX-YYYYMM-R"

Current result:

enter image description here

Desired result:

enter image description here

Is there a way to programmatically achieve the desired result?


Solution

  • It may be possible to complete this by shifting focus to a different control. However, I solved this problem by shortening the file name.