Hi guys,

Here is the Story:

I have an app, that has 2 forms, Form #1, uses Verdana, and Form #2 uses consolas font, and this is a cleartype font, so it pretty much sucks if ClearType is not on. Now, form#1, has a button that calls Form#2, and another to set or unset Cleartype.

Now, i know that the RegKeys for cleartype are/and can be set this way:

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\Desktop", "FontSmoothing", "2", Microsoft.Win32.RegistryValueKind.String)

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\Desktop", "FontSmoothingType", "2", Microsoft.Win32.RegistryValueKind.DWord)

And this way i can change the registry to turn on ClearType, or so it should.

Here is the issue:

I open form#1, and when i click the button that changes the registry values, and i check them with regedit, i see the change on the registry, but when i click the other button to open form#2 the font its still blurry, i other words, it didnt work. Well it does work only if i restart or log off.

BUT...

If i open form#1, and go the desktop properties/apperance/effects and set cleartype on and hit apply, i also see the same registrykeys changed, and when i open form#2, the form is crisp clear and everything look like a wonder, withour restart or logoff... SO... aparently this apply button on the desktop properties dialog its doing something else than just changing some registry keys. How can i simulate that, to make it work? Any ideas.

Thanks guys.