Sign in | Join | Help

Il blog di Marco Minerva

Around and About .NET World

This Blog

  • Home

Syndication

  • RSS for Posts
  • Atom
  • RSS for Comments

Search

  • Go

Tags

  • .NET
  • .NET 3.0
  • .NET 4.0
  • .NET Compact Framework
  • .NET Micro Framework
  • ADO .NET & SQL
  • AJAX
  • ASP .NET
  • C#
  • LINQ
  • Orcas & .NET 3.5
  • Orcas & .NET 3.5
  • Programmi
  • Programming
  • Silverlight
  • SQL Server
  • Tools
  • Tutto & Oltre :-)
  • Updates
  • Updates & Service Pack
  • VB .NET
  • Visual Studio
  • Visual Studio 2010
  • Windows
  • Windows Related

Community

  • Home
  • Blogs
  • Media
  • Forums
  • Wikis

Archives

  • luglio 2010 (2)
  • giugno 2010 (4)
  • maggio 2010 (1)
  • aprile 2010 (1)
  • marzo 2010 (4)
  • febbraio 2010 (1)
  • gennaio 2010 (3)
  • dicembre 2009 (1)
  • novembre 2009 (7)
  • ottobre 2009 (6)
  • settembre 2009 (11)
  • agosto 2009 (6)
  • luglio 2009 (17)
  • giugno 2009 (23)
  • maggio 2009 (21)
  • aprile 2009 (26)
  • marzo 2009 (24)
  • febbraio 2009 (23)
  • gennaio 2009 (27)
  • dicembre 2008 (22)
  • novembre 2008 (24)
  • ottobre 2008 (27)
  • settembre 2008 (3)

febbraio 2010 - Posts

giovedì 4 febbraio 2010 11.53

Recuperare l’icona associata ad un file eseguibile

Il .NET Framework fornisce un semplicissimo metodo per recuperare l’icona associata ad un file eseguibile, System.Drawing.Icon.ExtractAssociatedIcon. E’ possibile utilizzarlo, ad esempio, per impostare automaticamente l’icona della form principale della nostra applicazione sull’immagine specificata nelle proprietà del progetto:

Me.Icon = Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath)

Semplice e veloce :-)

Technorati Tag: .NET,Programming,Visual Studio,C#,VB .NET
Posted by Marco Minerva | with no comments
Filed under: VB .NET, C#
 
Powered by Community Server (Commercial Edition), by Telligent Systems