Click here to Skip to main content
12,349,603 members (28,153 online)

Comments by Peter Vegter (Top 4 by date)

Peter Vegter 28-Feb-16 6:07am View
   
For how to use a try/catch block you could start here: https://msdn.microsoft.com/en-us/library/xtd0s8kd%28v=vs.110%29.aspx
It's not really difficult, good luck.
Peter Vegter 27-Feb-16 23:03pm View
   
I don't know why it 'puts spaces between entries' and 'duplicates entries': please compare your code to my example carefully, it should not do that.
When you add text to the textbox it scrolls down, you can't prevent that. You can scroll (back) to the first line with: txtName.SelectionStart = 0; txtName.ScrollToCaret();
Also if you don't want to add empty array items (strings), use: if (string.IsNullOrEmpty(item)).
For a bit faster and 'smoother' adding of the items to the textbox use txtName.SuspendLayout() and txtName.ResumeLayout().
Peter Vegter 8-Dec-15 4:37am View
   
+5 doing it the Linq way!
Peter Vegter 8-Dec-15 4:37am View
   
Thanks!

Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid