मुझे हंस के उत्तर पसंद हैं लेकिन नियंत्रण वर्ग को ओवरराइड करने की कोई आवश्यकता नहीं है। आप नियंत्रण के हैंडल का उपयोग कर SetWindowTheme पर कॉल करके केवल एक व्यक्तिगत नियंत्रण से Win7 शैली को हटा सकते हैं। यहां एक उदाहरण दिया गया है:
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace MyApplication
{
public partial class Form1 : Form
{
[DllImport("uxtheme", ExactSpelling = true, CharSet = CharSet.Unicode)]
public extern static Int32 SetWindowTheme(IntPtr hWnd,
String textSubAppName, String textSubIdList);
public Form1()
{
InitializeComponent();
// Remove Win7 formatting from the progress bar.
SetWindowTheme(progressBar1.Handle, "", "");
स्रोत
2012-02-04 06:11:16
<3 Win98 स्टाइल :) –