combo box and richtext help
-
Hi, I have a couple of questions in c# desctop Applics, 1)how can i respond to hitting the enter key on a combobox, to take the value entered from the user as if it's a text box? 2)how to allign the text in a rich text box to be centered?? ur help is appreciated, Thanks
-
Hi, I have a couple of questions in c# desctop Applics, 1)how can i respond to hitting the enter key on a combobox, to take the value entered from the user as if it's a text box? 2)how to allign the text in a rich text box to be centered?? ur help is appreciated, Thanks
r_jaz wrote:
how can i respond to hitting the enter key on a combobox, to take the value entered from the user as if it's a text box?
Override the OnKeyPress event.
-
Hi, I have a couple of questions in c# desctop Applics, 1)how can i respond to hitting the enter key on a combobox, to take the value entered from the user as if it's a text box? 2)how to allign the text in a rich text box to be centered?? ur help is appreciated, Thanks
Check the OnkeyPress event for the first question. regarding the second one, right click the RTB. There is a property called TextAlign. Choose accordingly.
Keshav Kamat :) India
-
Check the OnkeyPress event for the first question. regarding the second one, right click the RTB. There is a property called TextAlign. Choose accordingly.
Keshav Kamat :) India
Hi, Thanks all for reply, there's no TextAlign property for richtextboxes its for textboxes only, i used the property of SelectionAligment by SelectAll() and then DeSelectAll() to centralize it but i wanted to see if there's a direct proprty such as TextAlign to do the job.. Thanks