SystemInformation Class

StewartBW 1,765 Reputation points
2025-06-28T03:52:57.74+00:00

Hi,

Anyone knows the difference between Application.RenderWithVisualStyles vs SystemInformation.UIEffectsEnabled?

I wanna know if visual styles are enabled system-wide and my app does not have admin rights when running, so which one fits best?

Also, anyone knows the purpose of SystemInformation.Secure Property? What is Security Manager? If TPM hardware, I have but the property returns false for me!

I'm using VB.net WinForms.

Thanks in advance :)

Windows development Windows API - Win32
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,521 Reputation points
    2025-06-28T06:39:08.4633333+00:00

    Application.RenderWithVisualStyles enables Common Controls v6 with

    CreateActCtx

    (like in a C++ code I had posted at https://learn.microsoft.com/en-us/answers/questions/1530593/how-do-i-enable-visual-styles)

    SystemInformation.UIEffectsEnabled just calls SPI_GETUIEFFECTS (list at "The following are the UI effects" https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfow)

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.