This blog is for my future and past info and reviews on various tech stuff….
![]() Watches & bands |
![]() Phones / Phablets |
![]() Compact cameras |
![]() Reviews |
![]() Resolution and Noise |
![]() Batteries and usage |
![]() PC & Code |
![]() Various tech stuff |
![]() Math |
![]() Other stuff |
Newer reviews can be expected to be ongoing projects, with minor additions or corrections.
Note: When I rate stuff, a 10/10 does not indicate perfect in an absolute academic sense, but as in (at least) as good as could be expected at the time, minor flaws allowed. For portable devices typically limited by the size and weight. Value for money also counts. An electronic device that got a high score in 2005, most likely would seem like pure trash ten years later….
- Honor Watch ES versus Honor Band 5 and 6Continue reading...</p> <p> </p> <p>
Got a Honor Watch ES-21C to replace the Honor Band 5 I have had for half a year in October. (And later a Band 6)
(Got it 20201003, this post was last updated 20201224)
An Honor band 6 have emerged after the Watch ES that is in between the two
- XKCD highlightsContinue reading...</p> <p> </p> <p>
- F(x)tec & XDA – Pro1-X announcedContinue reading...</p> <p> </p> <p>
- Calculate day of weekContinue reading...</p> <p> </p> <p>
- The EASY way to make a C# Windows.forms app really per monitor DPI awareContinue reading...</p> <p> </p> <p>
For .Net 8.0 WinForms apps go HERE (Also 7.0 and 6.0)
The below is for .Net Framework, latest being 4.8.
As posted in another post, many apps have problems with windows scaling.
See these screen-dumps from Windows lengthy guide that was found here
UPDATE 2020. After Windows “Creators update”, they made things slightly more complicated, sorry…
Here is a reasonably minimalistic approach. You will often just need code like this:
12345678910111213141516public
partial
class
Form1 : Form {
public
Form1() {
InitializeComponent();
DPI_Per_Monitor.TryEnableDPIAware(
this
, SetUserFonts);
}
void
SetUserFonts(
float
scaleFactorX,
float
scaleFactorY) {
var
OldFont = Font;
Font =
new
Font(OldFont.FontFamily, 11f * scaleFactorX, OldFont.Style, GraphicsUnit.Pixel);
Refresh();
OldFont.Dispose();
}
protected
override
void
DefWndProc(
ref
Message m) {
DPI_Per_Monitor.Check_WM_DPICHANGED(SetUserFonts,m,
this
.Handle);
base
.DefWndProc(
ref
m);
}
}
You will need to obey a few rules, but often it can be implemented in existing code in minutes!
Blog in English (well sort of, bare with me, non-native…), a few earlier than 2010 are just blunt copies of the source texts in Danish – Google translate helps here….
Collecting of old stuff started May 2015. Entries are generally attempted dated with original stamps, even if they are somewhat updated since, several reviews have been ongoing ‘projects’.