Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim risultato = Function(parametro As String)
If parametro = "Roma" Then
Return "Hai scelto Roma"
Else
Return "Non hai scelto Roma"
End If
End Function
MessageBox.Show(risultato("Roma"))
End Sub
http://deghetto.wordpress.com/
- ' sintassi con VB 2008
- Dim processi = _
- Process.GetProcesses.Where( _
- Function(proc) proc.ProcessName.StartsWith("F"))
1. ' sintassi con VB 2010
2. Dim processi = Process.GetProcesses.Where(
3. Function(p)
4. Try
5. Return p.ProcessName.
6. StartsWith("F")
7. Catch ex As Win32Exception
8. ' qui si inserisce la gestione
9. ' dell'eccezione
10. Return False
11. End Try
12. End Function)
http://msdn.microsoft.com/en-us/library/aa965884%28v=vs.85%29.aspx
32 and 64 bit application data in the Registry
Create a manifest
"$(DevEnvDir)\..\Tools\Bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest" -outputresource:"$(TargetDir)$(TargetName).exe;#1"
"C:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest" -outputresource:"$(TargetDir)$(TargetName).exe;#1"
Manifest Files
Registry Storage Space
Issues
WIN7 Registry Optimizations for Virtual Desktops
UAC Developers Guide
http://download.microsoft.com/download/D/9/B/D9BEB875-BC1D-4338-A655-251F4F353B2E/Top10Wave.exe

http://technet.microsoft.com/en-us/magazine/2007.06.uac.aspx
http://blogs.msdn.com/b/calvin_hsia/archive/2007/04/13/add-a-manifest-to-control-your-application-vista-uac-behavior.aspx
The MT.EXE tool that ships with Visual Studio or the Vista SDK can allow you to embed a manifest as a Windows Resource in an EXE file. Historically, only a Linker could build and manipulate a Windows Resource. Starting with Windows NT, the resources could be manipulated from within a program using the BeginUpdateResource family of functions
<!-- Copyright (c) Microsoft Corporation -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
name="Microsoft.Windows.Shell.notepad"
processorArchitecture="x86"
version="5.1.0.0"
type="win32"/>
<description>Windows Shell</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
</assembly>
http://www.freeaspx.it/
http://www.youtube.com/watch?v=Mbv7PcPxDb8&feature=player_embedded#at=154
http://www.msigeek.com/324/video-user-account-control-basics-and-windows-7-improvements