How to set the TextBox behavoir while scrolling
Posted on 2004-09-03
i have a usercontrol that i am creating. it consists of a TextBox and a CommandButton. the button is embedde/on top of and at the end of the TextBox. the problem is when text is entered it disappears under the button. when entering text the control should allow text to be entered like normal until it hits the left border of the button at which point all text should the be entered as if the right border of the TextBox had been reached. in addition if the user were to hit the end key the control should scroll to the very last character which will be displayed at the left border of the button. if i could i would put the button on the outside of the TextBox and not have any problems but i have to adhere to a visual style for this control. any help is greatly appreciated.