Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am loading a text file using Open file dialog.

I want to disable the word wrap option when I am loading the file, because it affects the operation which I am about to do.


How to temporarily disable such word wrap features at run-time using C#
Posted
Comments
Sergey Alexandrovich Kryukov 28-Mar-14 2:42am    
Everything you mentioned is absolutely irrelevant, except the control. Is it TextBox? RichTechBox? Anything else?
Anyway, read documentation on it; and you will know what to do.
—SA

1 solution

Please see my comment to the question.
What you need could be http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.wordwrap.aspx[^].

The property is used for System.Windows.Forms.RichTextBox or System.Windows.Forms.TextBox.

What's wrong with just reading standard MSDN documentation?

—SA
 
Share this answer
 
Comments
KUMAR619 28-Mar-14 2:57am    
Sorry I forgot to mention that I need to read text files which should have words wrapped.

How to do this
Sergey Alexandrovich Kryukov 28-Mar-14 10:32am    
I already answered...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900