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:

Anonymous said...

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

Greg said...

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

They will come in handy. :)