Click here to Skip to main content
15,446,232 members

Articles by Peter Huber SG (Articles: 22)

Articles: 22

RSS Feed

Average article rating: 4.74

Desktop Programming
Windows Forms
26 Jan 2006   Updated: 26 Jan 2006   Rating: 4.83/5    Votes: 43   Popularity: 7.69
Licence: CPOL    Views: 546,896     Bookmarked: 164   Downloaded: 11,117
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: 26,249     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: 14,283     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: 9,572     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.89/5    Votes: 17   Popularity: 6.01
Licence: CPOL    Views: 15,190     Bookmarked: 14   Downloaded: 195
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: 13,150     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: 42   Popularity: 7.91
Licence: CPOL    Views: 210,709     Bookmarked: 67   Downloaded: 7,140
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: 6,100     Bookmarked: 11   Downloaded: 136
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: 5,400     Bookmarked: 8   Downloaded: 112
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: 7,190     Bookmarked: 16   Downloaded: 180
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: 4,680     Bookmarked: 8   Downloaded: 81
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: 13,240     Bookmarked: 29   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: 3   Popularity: 2.39
Licence: CPOL    Views: 3,480     Bookmarked: 8   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.95/5    Votes: 12   Popularity: 5.34
Licence: Public Domain    Views: 4,440     Bookmarked: 13   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
DevOps
Testing
20 Dec 2020   Updated: 20 Dec 2020   Rating: 4.78/5    Votes: 11   Popularity: 4.98
Licence: CPOL    Views: 9,381     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: 4,010     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: 35,765     Bookmarked: 57   Downloaded: 551
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: 866,749     Bookmarked: 294   Downloaded: 23,179
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: 12,850     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: 4,030     Bookmarked: 7   Downloaded: 81
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,942     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,053,066     Bookmarked: 290   Downloaded: 14,040
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.
Software Developer (Senior)
Singapore Singapore
Retired SW Developer from Switzerland living in Singapore

Interested in WPF projects.