Click here to Skip to main content
15,352,321 members

Articles by Peter Huber SG (Articles: 20)

Articles: 20

RSS Feed

Average article rating: 4.72

Desktop Programming
Windows Forms
26 Jan 2006   Updated: 26 Jan 2006   Rating: 4.83/5    Votes: 43   Popularity: 7.69
Licence: CPOL    Views: 543,806     Bookmarked: 164   Downloaded: 11,092
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: 25,449     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: 13,233     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: 3   Popularity: 2.39
Licence: CPOL    Views: 8,202     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.88/5    Votes: 16   Popularity: 5.88
Licence: CPOL    Views: 12,280     Bookmarked: 14   Downloaded: 164
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: 11,980     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.93/5    Votes: 41   Popularity: 7.85
Licence: CPOL    Views: 207,639     Bookmarked: 66   Downloaded: 7,090
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.45/5    Votes: 4   Popularity: 2.68
Licence: CPOL    Views: 5,140     Bookmarked: 11   Downloaded: 122
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.73/5    Votes: 6   Popularity: 2.90
Licence: CPOL    Views: 4,470     Bookmarked: 8   Downloaded: 90
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: 7   Popularity: 4.18
Licence: Public Domain    Views: 5,960     Bookmarked: 16   Downloaded: 149
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: 5   Popularity: 3.49
Licence: Public Domain    Views: 3,610     Bookmarked: 8   Downloaded: 61
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: 15   Popularity: 5.88
Licence: Public Domain    Views: 10,500     Bookmarked: 28   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?
DevOps
Testing
20 Dec 2020   Updated: 20 Dec 2020   Rating: 4.78/5    Votes: 11   Popularity: 4.98
Licence: CPOL    Views: 8,941     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: 6   Popularity: 3.89
Licence: Public Domain    Views: 3,500     Bookmarked: 11   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: 34,935     Bookmarked: 57   Downloaded: 547
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: 862,609     Bookmarked: 294   Downloaded: 23,126
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: 11,800     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: 3,540     Bookmarked: 7   Downloaded: 74
Please Sign up or sign in to vote.
A detailed guide how to write your own collection.
Web Development
ASP.NET
19 Oct 2016   Updated: 15 Feb 2017   Rating: 4.13/5    Votes: 8   Popularity: 3.73
Licence: Public Domain    Views: 22,382     Bookmarked: 17   Downloaded: 0
Please Sign up or sign in to vote.
Near real time, multi threading safe tracing for any .NET technology
17 Sep 2006   Updated: 8 Oct 2006   Rating: 4.88/5    Votes: 109   Popularity: 9.85
Licence: CPOL    Views: 2,043,266     Bookmarked: 290   Downloaded: 14,009
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

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.
Peter Huber SG
Software Developer (Senior)
Singapore Singapore
Retired SW Developer from Switzerland living in Singapore

Interested in WPF projects.