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 7028391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:22:51+00:00 2026-05-28T00:22:51+00:00

In WinForms application when my application is started then the User Account Control dialogbox

  • 0

In WinForms application when my application is started then the User Account Control dialogbox comes(Only in Windows7).

Can anyone suggest me how programatically I can avoid this – That is my application should start always in admin mode or is there any option to stop this dialogbox from coming?

I am developing in C#,VS2008.

  • 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-05-28T00:22:51+00:00Added an answer on May 28, 2026 at 12:22 am

    You cannot automatically start an application with higher privileges without accepting the prompt or telling Windows to always start that application with higher privileges. Being able to programatically change this behaviour would defeat the whole purpose of UAC. UAC comes up automatically if it’s active and an application does something that requires higher privileges than the current user. Being an administrator user does not give you the rights to do everything without confirmation first, which actually only then elevates your privileges if UAC is active.

    What you should do is track down what actually triggers UAC in your application and remove that or modify it so that the application does not need higher privileges to successfully complete that task. You could also check if the manifest of your application requests higher privileges, check for requestedExecutionLevel in the manifest. In case you actually do need higher privileges your only way is to either tell the users to turn off UAC which still does not mean a “normal” user is able to run your application. Or to always accept the prompt when starting your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application that can be started either as a standard WinForms app
I started noticing strange behavior when navigating the main toolbar of my Winforms application,
My WinForms application has a tab with a System.Windows.Forms.WebBrowser control. There are several controls
I have a WinForms application with a DataGridView control and a column of DataGridViewButtonCell
I have a project that i started as a WinForms application as that was
We've got a winforms LOB application, which under normal circumstances should be started from
I have a TreeView control in my WinForms .NET application that has multiple levels
I'm working on a WinForms app and I have a user control in it.
I'm using VS 2005 in a VB.Net WinForms application. I have a custom User
I'm building a winforms application using a crystalreportviewer control (version 10.5.3700.0). Application works fine

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.