I have a combo box that contains a list of user defined project names, including an entry to add another project. Project names are generally short, but someone could easily add a long name. If they do, I’d like to be able to resize the combo box to display the entire name. To do this I’d have to “ask” the system how many pixels wide each project name is:
Code:
WidthOfName = HowWideIs(“Very Long Project Name”,”Microsoft Sans Serif, 11pt”);
Then I could find the widest name and resize the combo box and also move the “Local Path” label that follows the box.

So, is there such a system call? And, if so, what is the proper syntax?