Hi everyone!
I need to add a multiline TextBox to the RibbonBar. I used that code in the desingercode (short version ;) )
then, using the designer I heve set the properties of this TextBoxElement.TextBoxItem : multiline to true, and the null text to proper info and AcceptReturn = true;
When I run my application, I see the null text, but I can start a new line with enter key and even when I put a lot of text (reach right edge) text doesn,t break to new line... Can someone help me fix that? I will be greatfull.
I need to add a multiline TextBox to the RibbonBar. I used that code in the desingercode (short version ;) )
| private InitializeComponent() |
| { |
| //(...) |
| this.radTextBoxElement = new RadTextBoxElement(); |
| //(...) |
| // radRibbonBarGroupMessageText |
| // |
| this.radRibbonBarGroupMessageText.Items.AddRange(new Telerik.WinControls.RadItem[] {this.radTextBoxElement}); |
| this.radRibbonBarGroupMessageText.Name = "radRibbonBarGroupMessageText"; |
| this.radRibbonBarGroupMessageText.Orientation = System.Windows.Forms.Orientation.Horizontal; |
| this.radRibbonBarGroupMessageText.Text = "Treść"; |
| // |
| //(...) |
| // |
| } |
| RadTextBoxElement radTextBoxElement; |
then, using the designer I heve set the properties of this TextBoxElement.TextBoxItem : multiline to true, and the null text to proper info and AcceptReturn = true;
When I run my application, I see the null text, but I can start a new line with enter key and even when I put a lot of text (reach right edge) text doesn,t break to new line... Can someone help me fix that? I will be greatfull.