D
Deepak Malkan [Bentley]
I am using to the Winforms ComboBox to simulate functionality similar to
that in the address-bar of Windows Explorer. Specifically, I want the
following functionality:
1. Indented items with image icons in drop down - I can simulate this by
setting DrawMode to OwnerDrawFixed.
2. Show the path of the selected item in the combobox text box - I trap the
selection the event on the ComboBox & set the required path as Text on the
ComboBox. But at some point out of my control, the ComboBox overwrites the
Text with the text associated with the selected item. How can I avoid this ?
3. Show the image associated with the text in the combobox text box - I can
do this only if the combobox drop-down style is set to DropDownList. I would
like to show the image when the combobox drop-down style is set to
"DropDown" - since I want the user to have the ability to modify the text in
the text box - similar to the ability Windows Explorer gives in its
addressbar.
In short, I want to simulate the exact same functionality & look&feel of the
Windows Explorer Addressbar using a .net ComboBox. Any help in resolving
problems raised in point 2 & 3 above will be helpful.
With Regards,
Deepak Malkan
Bentley Systems.
that in the address-bar of Windows Explorer. Specifically, I want the
following functionality:
1. Indented items with image icons in drop down - I can simulate this by
setting DrawMode to OwnerDrawFixed.
2. Show the path of the selected item in the combobox text box - I trap the
selection the event on the ComboBox & set the required path as Text on the
ComboBox. But at some point out of my control, the ComboBox overwrites the
Text with the text associated with the selected item. How can I avoid this ?
3. Show the image associated with the text in the combobox text box - I can
do this only if the combobox drop-down style is set to DropDownList. I would
like to show the image when the combobox drop-down style is set to
"DropDown" - since I want the user to have the ability to modify the text in
the text box - similar to the ability Windows Explorer gives in its
addressbar.
In short, I want to simulate the exact same functionality & look&feel of the
Windows Explorer Addressbar using a .net ComboBox. Any help in resolving
problems raised in point 2 & 3 above will be helpful.
With Regards,
Deepak Malkan
Bentley Systems.