How can I invoke the Combobox Item SelectionChange from Init Dialog.
If I set combobox.SetCurSel(1) in InitDialog, the SelectionChange event is not invoked.
How Can I achieve this.
Thanks
Printable View
How can I invoke the Combobox Item SelectionChange from Init Dialog.
If I set combobox.SetCurSel(1) in InitDialog, the SelectionChange event is not invoked.
How Can I achieve this.
Thanks
Yes, it is by design. From MSDN:Quote:
The CBN_SELCHANGE notification message is sent when the user changes the current selection in the list box of a combo box. The user can change the selection by clicking in the list box or by using the arrow keys.
As a "workaround" you could directly call the message handler of CBN_SELCHANGE notification.Quote:
Originally Posted by kirantoday
No, SetCurSel should work. I used it frequently. You're talking about the notification message, not programatically setting the selection.
Can you show the code you're using?