Scripts:

  1. Executar um programa à partir de um aplicativo VB.NET
        Sub executarPrograma()
    
            Dim enderecoExecutavel As String = "C:\Program Files\Windows Media Player\wmplayer.exe"
            Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
            myProcess.StartInfo.FileName = enderecoExecutavel
            'myProcess.StartInfo.Arguments = argumento'Argumento a enviar ao programa a ser aberto
            'myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden ' Se pretende executar ele ocultamente (O programa a ser executado ficar oculto)
            myProcess.Start()
            myProcess.WaitForExit() ' Faz o aplicativo esperar o programa ser fechado (Alguns programas como office não aceitar essa operação de espera)
            MsgBox("Programa fechado")
    
        End Sub
    
  2. Alterad data e Hora do Windows à partir de um aplicativo VB.NET
    
            Today = CType("19/04/2015", Date)
            TimeOfDay = CType("9:11", Date)
    
    
  3. Conversão de array de bytes em string
    
          Dim stringx As String = System.Text.Encoding.UTF8.GetString(bytes)
    
    
 

Home of ASP.NET

ASP.NET is a free, fully supported Web application framework that helps you create standards-based web solutions. Whether you're new to ASP.NET or an experienced developer, the ASP.NET websiteis your source for news, training, downloads, and support.

 

NuGet Gallery

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio. To see available packages, visit the NuGet gallery. You can also develop your own package and share it in the gallery.

 

Find Web Hosting

You can easily find a web hosting company that offers the right mix of features and price for your applications. Visit Microsoft.com/webto explore offerings from many providers.