Click here to Skip to main content
15,891,248 members

Articles by Peter Huber SG (Articles: 26)

Articles: 26

RSS Feed

Average article rating: 4.79

Desktop Programming
Windows Forms
26 Jan 2006   Updated: 26 Jan 2006   Rating: 4.84/5    Votes: 44   Popularity: 7.75
Licence: CPOL    Views: 563,885     Bookmarked: 164   Downloaded: 11,227
Please Sign up or sign in to vote.
Saving a changed row in the DataGridView automatically to the database seems to be a basic task, but is challenging to implement. Read here why the most intuitive approaches fail and how to get it working.
WPF
25 Mar 2020   Updated: 25 Mar 2020   Rating: 4.08/5    Votes: 7   Popularity: 3.45
Licence: Public Domain    Views: 30,599     Bookmarked: 30   Downloaded: 0
Please Sign up or sign in to vote.
Controls verifying user input and reporting automatically to host window if data has been changed and if the required data is entered
30 Mar 2020   Updated: 30 Mar 2020   Rating: 3.95/5    Votes: 8   Popularity: 3.57
Licence: Public Domain    Views: 18,805     Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
A WPF TextBox which can validate email addresses depending on your needs, plus detailed description of the many ways a valid email address may look like.
5 Feb 2021   Updated: 5 Feb 2021   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 17,888     Bookmarked: 12   Downloaded: 0
Please Sign up or sign in to vote.
Letting the user move some rows up and down in a DataGrid should be easy to implement, but it's a nightmare.
15 Mar 2021   Updated: 15 Mar 2021   Rating: 4.91/5    Votes: 22   Popularity: 6.59
Licence: CPOL    Views: 33,359     Bookmarked: 18   Downloaded: 347
Please Sign up or sign in to vote.
Covers in depth all WPF color related issues from Color Models, ColorPickers, Colors to helpful methods for mixing colors and making them brighter and darker.
9 Apr 2020   Updated: 9 Apr 2020   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: Public Domain    Views: 18,331     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
A WPF Textbox which can validate international and national phone numbers depending on your needs, plus detailed explanation of the structure of phone numbers.
23 Nov 2013   Updated: 3 Sep 2018   Rating: 4.94/5    Votes: 43   Popularity: 7.97
Licence: CPOL    Views: 226,242     Bookmarked: 69   Downloaded: 7,302
Please Sign up or sign in to vote.
Using Style and Binding to control WPF DataGridCell appearance
7 May 2021   Updated: 7 May 2021   Rating: 4.48/5    Votes: 5   Popularity: 3.13
Licence: CPOL    Views: 12,476     Bookmarked: 12   Downloaded: 196
Please Sign up or sign in to vote.
WPF LinearGradientBrush parameters are confusing and need a proper explanation
3 Aug 2021   Updated: 3 Aug 2021   Rating: 3.83/5    Votes: 7   Popularity: 3.24
Licence: CPOL    Views: 12,163     Bookmarked: 8   Downloaded: 182
Please Sign up or sign in to vote.
Deep dive into the intricacies of combining scrolling and zooming in your control
3 Jan 2022   Updated: 3 Jan 2022   Rating: 4.95/5    Votes: 8   Popularity: 4.47
Licence: Public Domain    Views: 14,597     Bookmarked: 20   Downloaded: 312
Please Sign up or sign in to vote.
A deep dive into how to easily display data exactly the way you want when DataGrid is not up to the task
3 Feb 2022   Updated: 3 Feb 2022   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: Public Domain    Views: 11,842     Bookmarked: 10   Downloaded: 121
Please Sign up or sign in to vote.
How to correct the problem that the DispatcherTimer raises the Tick events slower than required by Interval
13 Feb 2022   Updated: 13 Feb 2022   Rating: 5.00/5    Votes: 18   Popularity: 6.28
Licence: Public Domain    Views: 30,953     Bookmarked: 35   Downloaded: 0
Please Sign up or sign in to vote.
Did you ever wonder what WPF is doing under the hood to place your control on the screen?
2 Sep 2022   Updated: 2 Sep 2022   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 10,922     Bookmarked: 14   Downloaded: 0
Please Sign up or sign in to vote.
Concurrent threads can use LogViewer to show the user scrollable information efficiently
16 Sep 2022   Updated: 16 Sep 2022   Rating: 4.86/5    Votes: 14   Popularity: 5.57
Licence: Public Domain    Views: 8,180     Bookmarked: 19   Downloaded: 0
Please Sign up or sign in to vote.
How you should organise your backups in the time of cloud storage and write your own app for it
10 May 2023   Updated: 10 May 2023   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 13,921     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
WPF design might have been too clever when using DIP (device independent pixels)
24 May 2023   Updated: 24 May 2023   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: Public Domain    Views: 10,941     Bookmarked: 6   Downloaded: 71
Please Sign up or sign in to vote.
Let the user import, adjust and view images
23 Sep 2023   Updated: 23 Sep 2023   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: Public Domain    Views: 4,671     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Detailed article explaining how to make WPF display media files created by mobile phones properly
25 Dec 2023   Updated: 25 Dec 2023   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: Public Domain    Views: 6,260     Bookmarked: 8   Downloaded: 48
Please Sign up or sign in to vote.
Do you need a 10 minute break or want to do some mental warmup before programming? This free game is for you.
DevOps
Testing
20 Dec 2020   Updated: 20 Dec 2020   Rating: 4.78/5    Votes: 11   Popularity: 4.98
Licence: CPOL    Views: 12,711     Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
Using a RAM disk instead of an SSD drive prevents an early death of the SSD and the tests run even faster.
21 Mar 2022   Updated: 21 Mar 2022   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: Public Domain    Views: 6,770     Bookmarked: 17   Downloaded: 0
Please Sign up or sign in to vote.
WpfTestbench helps you to write sophisticated test windows for your WPF controls with few lines of code
General Programming
Debugging
2 Jul 2014   Updated: 3 Jul 2014   Rating: 4.97/5    Votes: 34   Popularity: 7.61
Licence: Public Domain    Views: 42,256     Bookmarked: 57   Downloaded: 597
Please Sign up or sign in to vote.
Non blocking, multithreading safe tracing with only microseconds delays
Programming Languages
C#
31 May 2006   Updated: 4 Aug 2006   Rating: 4.87/5    Votes: 100   Popularity: 9.57
Licence: CPOL    Views: 896,478     Bookmarked: 294   Downloaded: 23,363
Please Sign up or sign in to vote.
C# class making it easy to interact with POP3 email server, like listing of emails, download and deletion. Special attention was given to reliable connection control. The code was tested for several months with Google Gmail, including SSL.
26 Apr 2021   Updated: 26 Apr 2021   Rating: 4.97/5    Votes: 18   Popularity: 5.85
Licence: CPOL    Views: 19,558     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
If a record declaration creates a cyclical reference, the compiler generated ToString() causes a stack overflow.
12 Nov 2021   Updated: 12 Nov 2021   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 7,430     Bookmarked: 9   Downloaded: 106
Please Sign up or sign in to vote.
A detailed guide how to write your own collection.
Web Development
ASP.NET
17 Sep 2006   Updated: 8 Oct 2006   Rating: 4.88/5    Votes: 109   Popularity: 9.85
Licence: CPOL    Views: 2,145,048     Bookmarked: 289   Downloaded: 14,157
Please Sign up or sign in to vote.
C# class reading ASCII emails from a POP3 server and converting them using MIME to aSystem.Net.Mail.MailMessage derived class for further processing. The complete code is provided (pure C# 2.0, only .NET framework DLLs used). If possible, it matches MIME multiparts to body, attachment, etc. of MailM
19 Oct 2016   Updated: 31 Mar 2023   Rating: 4.30/5    Votes: 10   Popularity: 4.30
Licence: Public Domain    Views: 30,402     Bookmarked: 24   Downloaded: 0
Please Sign up or sign in to vote.
Near real time, multi threading safe tracing for any .NET technology

Average blogs rating:

No blogs have been submitted.

Average tips rating:

No tips have been posted.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Software Developer (Senior)
Singapore Singapore
Retired SW Developer from Switzerland living in Singapore

Interested in WPF projects.