Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
I'm trying to create/simulate a listbox that can be edited.
In a nutshell, I've put a standard listbox control on a form (frmA) along with a command button. When the button is clicked, I know that the contents of the currently selected listbox item is to be modified. I display a borderless form (frmB) without a title bar that contains a textbox in which the listbox's content can be changed. The idea is to make a textbox appear on top of the listbox at the listbox's selected item's position. This all works fine except I can't figure out how to determine the vertical offset at which to display frmB (with the textbox) on top of frmA.
Does anyone know how to determine the coordinates of the selected item in a listbox? What would be nice would be properties similar to a grid's relative row and rowheight from which the top property of frmB can be determined. In case you are wondering, yes, I do the same for a grid and it works great. In case you are wondering why I do this for a grid...that's another topic :)
Any suggestions and/or comments are appreciated
TIA
Mike
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only