Results 1 to 6 of 6

Thread: [RESOLVED] Make button which runs as administrator

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2013
    Posts
    200

    Resolved [RESOLVED] Make button which runs as administrator

    Hello, I'm trying to make a button shows a form with administrative priviliges. Is this possible using Visual Studio 2013?

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: Make button which runs as administrator

    Yes it is.
    My Github - 1d3nt

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2013
    Posts
    200

    Re: Make button which runs as administrator

    how?

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Make button which runs as administrator

    It's not possible to have part of your project running as administrator and another part not running as administrator, but it is possible to either run your whole project as administrator, and also possible to start an external application with administrator privileges from within your project.

  5. #5
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Make button which runs as administrator

    Project-->Properties-->Application-->View UAC Settings-->app. manifest:

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2013
    Posts
    200

    Re: [RESOLVED] Make button which runs as administrator

    I got it. Thanks a lot.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width