If you enter a tooltip in a DataGridView property control for columns, and I suspect that other WinForms control constructors will add "\ r \ n" to the tooltip, you will see "\\ r \\ n" in the tool. The tooltip that appears when you run the code. This is because the tooltip property is already a string, and the designer interprets the code from the tooltip entered in the properties window as "\\ r \\ n". You can go to the file.Designer.cs, edit the file manually and replace "\\ r \\ n" with "\ r \ n". After that, you will see a hint with line breaks when starting the application. If you go back and look at the value of the tooltip in the constructor, you will see the tooltip without breaking the line, but it will be there and will not be converted to "\\ r \\ n" by the designer. Despite the comment made earlier, you only need "\ n". "\ R" is not necessary.
source share