System.Diagnostics.Process.Start("c:\Archivo.PDF")
En este caso nos abre el archivo.pdf en acrobat, pero puede abrir cualquier tipo de archivo en su programa predeterminado
Trozos de codigo sera una pagina donde recopile diferentes funciones de los diferentes lenguajes que llegue a utilizar para reutilizarlos en algun momento de forma mas rapida
System.Diagnostics.Process.Start("c:\Archivo.PDF")
If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) >= 58 Then
e.Handled = True
Else
e.Handled = False
End If
Sub Factorial ()
a = Int(txtscreen.Text)
'a se pasa entero porque los factoriales no pueden contener decimales
b = 1
If a = 0 Then
b = 0
Else
If a = 1 Then
b = 1
Else
For i = 1 To a
b = b * i
Next
End If
End If
txtfactorial.text = b
End Sub
gradoradian = (Math.PI * grado) / 180Remplazando el Marh.cos por cualquiera de las otras funciones de la clase System.Math obtenemos lo que se desea
gradonormal = Math.Cos(gradoradian)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim segundero As Date
segundero = segundero.AddSeconds(1)
tiempo.Text = segundero
End Sub
Dim x As Control
For Each x In Me.Controls
If TypeOf x Is TextBox Then x.Text = ""
Next
Ejemplo:' Se inicializa la semilla con el Randomize.
Randomize()
' La siguiente linea devuelve un numero entero entre el a y el b.
Dim value As Integer = CInt(Int((a * Rnd()) + b))
' Lo siguiente devolveria un valor entero entre 1 y 16.
Randomize()
Dim value As Integer = CInt(Int((1 * Rnd()) + 16))
Copyright © 2009 Your Blog. All Rights Reserved.
Powered by Blogger | Theme by Skinpress | Brought to Blogger by Dante Araujo and Deluxe Templates