uma_thangaraj
New member
- Joined
- Jan 18, 2008
- Messages
- 3
- Programming Experience
- Beginner
Hello everyone.
I have written the code to populate the combo box on the keypress event.The combo box gets populated correctly but I found that the cursor position in the combo box text gets set to 0 after every keypress event as a result of which it would display the combo box text in the reverse order. To solve this problem, I had explicitly set the selectionstart property of the combobox to the length of the combo box text +1.
But if the user positions the cursor at any given position in the combo box text and then starts typing, then it appends the newly typed text to the end of the text rather than at the required position. So can I have any method by which I can get the position of the cursor specified by the user and append the newly entered text at the required position??
Thanx in advance for any help.
I have written the code to populate the combo box on the keypress event.The combo box gets populated correctly but I found that the cursor position in the combo box text gets set to 0 after every keypress event as a result of which it would display the combo box text in the reverse order. To solve this problem, I had explicitly set the selectionstart property of the combobox to the length of the combo box text +1.
But if the user positions the cursor at any given position in the combo box text and then starts typing, then it appends the newly typed text to the end of the text rather than at the required position. So can I have any method by which I can get the position of the cursor specified by the user and append the newly entered text at the required position??
Thanx in advance for any help.