Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • How can I check if the textedit is a "multiline" editor?



                                    In the standard VS textbox, there is a multiline property which I can set and also check for multiline.



                                    When the text box got focus, I want to check if it is a multuline edit and display the results in the label control.



                                    Please see attached sample.



                                    When textedit5 got focus, I want to display "Multiline" in the label control.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                ´╗┐TextEdit controls do not support the Multiline property. You would use a MemoEdit control instead.

                                • Dean J. 07.11.2014

                                  If the TextEdit actually is a standard MS TextBox under the covers, I suggest supporting the Microsoft MultiLine property.  This would be so helpful when you've already placed a TextEdit on your form, and later the customer wants you to make it show multi-line.

                                • Hi Dean,
                                  You're right, our TextEdit is contained inside the Microsoft TextBox control, which does, as you correctly noticed, support multilane text. If for some reason, the MemoEdit control doesn't meet your requirements, it's possible to support multilane text by creating a custom editor. Please review my sample from the How to make MRUEdit multiline ticket to see how it can be done (it's for MRUEdit, but the idea is the same).
                                  See also: Custom Editors 

                                  Let me know if I can be of more help.

                                You must  log in  or  register  to leave comments

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners