Saturday, September 08, 2007

A Couple Vista/UAC/VB2008 How To's from VB Helper

Some Vista related how to's that I thought I may need...

 

VB Helper - Add UAC shields to buttons, menu items, and picture boxes in Visual Basic 2008

"This example shows how to add UAC shields to buttons, menu items, and picture boxes in Visual Basic 2008 ..."

Looks like it might also work for VB 2005.

 

VB Helper - Launch a program while requesting privilege elevation in Visual Basic 2008

"This example shows how to launch a program while requesting privilege elevation in Visual Basic 2008. ..."

Done using ProcessStartInfo, the runas Verb and UseShellExecute. Again, should also work in VB 2005.

 

Mark a program to run with elevated privileges by using its manifest in Visual Basic 2008

"This example shows how to mark a program to run with elevated privileges by using its manifest in Visual Basic 2008."

Definitely only VS/VB 2008

2 comments:

  1. You can embed manifests with VS2005 in VB, it is just not as straightforward.

    http://www.danielmoth.com/Blog/2006/07/vista-user-account-control.html

    http://www.danielmoth.com/Blog/2006/12/launch-elevated-and-modal-too.html

    ReplyDelete
  2. Nice... Thanks for taking the time to comment with those URL's.

    They will come in handy. :)

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...