C#设置WebBrowser默认的IE内核
通常情况下,直接调用WebBrowser控件的时候默认是IE7内核,实在是不美观。using Microsoft.Win32;
using System;
using System.ComponentModel;
namespace ClassLibrary
{
/// <summary>
/// 设置Webbrowser控件所用IE内核版本
/// &...
c# 检测操作系统版本
通过System.Environment.OSVersion.Version获得操作系统的版本号,进而判断操作系统版本,操作系统和对应版本号如下表。操作系统PlatformIDMajor versionMinor versionWindows 95Win32Windows40Windows 98Win32Windows410Windows MeWin32Windows490Windows N...