Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7902801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:35:48+00:00 2026-06-03T09:35:48+00:00

I am working with ASP.net and C# . Now, I have developed a web

  • 0

I am working with ASP.net and C# . Now, I have developed a web application. I want to change the current theme to windows classic theme in Window7(IE8) because my design is disordered when other theme used. Could I change theme at run time? Could I do this OnPreInit() Event. Please help me .

With regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:35:50+00:00Added an answer on June 3, 2026 at 9:35 am

    You should fix your CSS rather than change the entire windows theme to make it work…

    Plus you cant launch a Process on the client from an ASP.Net, never the less here is the answer for non-web applications:

    Ref: http://davidrobertmattson.com/wordpress/?p=48

    //Sets the current theme
    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.CreateNoWindow = false;
    startInfo.FileName = “rundll32.exe”;
    string startuppath = Application.StartupPath.ToString();
    string Arguments = “Shell32.dll,Control_RunDLL desk.cpl desk,@Themes /Action:OpenTheme /File:\”C:\\Windows\\Resources\\Themes\\Windows Classic.Theme\”";
    startInfo.Arguments = Arguments;
    try
    {
    // Start the process with the info we specified.
    // Call WaitForExit and then the using statement will close.
    using (Process exeProcess = Process.Start(startInfo))
    {
    exeProcess.WaitForInputIdle();
    
    IntPtr p = exeProcess.MainWindowHandle;
    ShowWindow(p, 1);
    SendKeys.SendWait(“{enter}”);
    }
    }
    catch
    {
    // Log error.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on web application using VB in ASP.NET. Right now I have
I have a working ASP.NET MVC web application to manage projects and customers. Now
I am working on the web application developed in ASP.Net using C#. Allong with
i have develop a small asp.net web application in this i have a in
I have a site developed in ASP.NET and hosted on a windows server using
I am working in asp.net MVC2 application and I have question related to design
I am working on an asp.net mvc3 application with linq2sql. I have a List
I have jsut copied one web apllication (web project) developed in asp.net 3.5 with
I am working with ASP.NET and StoredProcedure. I change the stored procedure so now
Last 8 months I have been working in ASP.NET MVC framework but now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.