Click here to Skip to main content
12,955,959 members (64,236 online)

Comments by Peter Vegter (Top 6 by date)

Peter Vegter 14-Mar-17 16:21pm View
You're welcome. Thanks for the reply.
Nice 'problem', I needed this construction to start and stop a timer driven option...
Happy coding, Peter
Peter Vegter 6-Feb-17 14:27pm View
Very nice! Thanks for your reply.
Kind regards, Peter
Peter Vegter 28-Feb-16 6:07am View
For how to use a try/catch block you could start here:
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

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