What is the comboBox please? If it is an object, how about invisualize it at the situation you wish please?
PI Developer Club
You can add a combobox to your display using the Draw->Control menu option. You can then draw out the size & shape of the combobox you want. Change the name by right clicking on the combobox in build mode and selecting properties.
The combobox can be manipulated with VBA. If you wish to populate the combobox with display names, you can insert code in the Display_Open() event to search your directory for .pdi or .piw files and add them to a list. You can then add code in your combobox_change or a button_click event to open the new file using Application.Displays.Open(path...). If you don't want to search a directory, you can maintain a list of displays in a text/csv file and read that in (instead of searching the directory).
I hope that helps, please let me know if you have any questions.
Thanks Sam ☺