c# Programming Glossary: environment.osversion.version.major
HowTo Disable WebBrowser 'Click Sound' in your app only http://stackoverflow.com/questions/10456/howto-disable-webbrowser-click-sound-in-your-app-only string keyValue if value keyValue SystemRoot Media if Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Minor 0 XP keyValue Windows.. 0 XP keyValue Windows XP Start.wav else if Environment.OSVersion.Version.Major 6 Vista keyValue Windows Navigation Start.wav else ..
Winforms high DPI blurry fonts http://stackoverflow.com/questions/13228185/winforms-high-dpi-blurry-fonts in your Main method STAThread static void Main if Environment.OSVersion.Version.Major 6 SetProcessDPIAware Application.EnableVisualStyles Application.SetCompatibleTextRenderingDefault..
How can we check if the current OS is win8 or blue http://stackoverflow.com/questions/17406850/how-can-we-check-if-the-current-os-is-win8-or-blue 6.2.9200.0 Environment.OSVersion.Version 6.2.9200.0 Environment.OSVersion.Version.Major 6 Environment.OSVersion.Version.Minor 2 c# windows 8 environment..
How to know a process is 32-bit or 64-bit programmatically http://stackoverflow.com/questions/1953377/how-to-know-a-process-is-32-bit-or-64-bit-programmatically private static bool IsWin64 Process process if Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Minor.. Process process if Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Minor 1 IntPtr processHandle..
How to adjust microphone gain from C# (needs to work on XP & W7) http://stackoverflow.com/questions/3022981/how-to-adjust-microphone-gain-from-c-sharp-needs-to-work-on-xp-w7 int waveInDeviceNumber waveIn.DeviceNumber if Environment.OSVersion.Version.Major 6 Vista and over var mixerLine new MixerLine IntPtr waveInDeviceNumber..
How to detect Windows 64-bit platform with .NET? http://stackoverflow.com/questions/336633/how-to-detect-windows-64-bit-platform-with-net wow64Process public static bool InternalCheckIsWow64 if Environment.OSVersion.Version.Major 5 Environment.OSVersion.Version.Minor 1 Environment.OSVersion.Version.Major.. 5 Environment.OSVersion.Version.Minor 1 Environment.OSVersion.Version.Major 6 using Process p Process.GetCurrentProcess bool retVal if..
Correct way to deal with UAC in C# http://stackoverflow.com/questions/3925065/correct-way-to-deal-with-uac-in-c-sharp You can check whether the OS requires UAC by simply doing Environment.OSVersion.Version.Major 6 . 6 is both Windows Vista and 7. You can make sure you're..
Draw semi transparent overlay image all over the windows form having some controls http://stackoverflow.com/questions/4503210/draw-semi-transparent-overlay-image-all-over-the-windows-form-having-some-contro Aero transitions the plexiglass gets too visible if Environment.OSVersion.Version.Major 6 int value 1 DwmSetWindowAttribute tocover.Handle DWMWA_TRANSITIONS_FORCEDISABLED.. Cover_ClientSizeChanged if this.Owner.IsDisposed Environment.OSVersion.Version.Major 6 int value 1 DwmSetWindowAttribute this.Owner.Handle DWMWA_TRANSITIONS_FORCEDISABLED..
Determine OS using Environment.OSVersion http://stackoverflow.com/questions/860459/determine-os-using-environment-osversion capabilities being present on the target platform if Environment.OSVersion.Version.Major 5 if Environment.OSVersion.Minor 1 XP else if Environment.OSVersion.Minor..
|