How can I detect new line from string. I tried Environment.NewLine but its not working. Initially I tried to replace it directly but it was not working after I tried to detect new line. Then I came to know that its not detecting new line.
As temporary solution I have taken a richbox with new line and comparing it. Its working fine but its not the proper method so please tell me how to do it properly.