Hola disculpen el doble post, pero ya solucione el problema saque el codigo del load y lo puse en el boton y funciono sin ningun problema. Les dejo el codigo por si alguien le sirve
Código vb:
Ver originalPrivate Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
ooConexion = New SqlConnection
ooConexion.ConnectionString = _
"Data Source=SISTEMAS; database=DOP; user id=administrador;password=napoleon"
oDataAdapter = New SqlDataAdapter
Dim sSQL As String
sSQL = "update decreto set fecha_llegada = '" & MaskedTextBox1.Text & "'" & _
"where Decreto_OP= '" & TextBox3.Text & "'"
'crear comando
Dim oComando As New SqlCommand(sSQL, ooConexion)
oComando.Parameters.Add(New SqlParameter("@Fecha_Llegada", _
SqlDbType.DateTime))
oComando.Parameters("@Fecha_Llegada").Value = Me.MaskedTextBox1.Text
Dim iResultado As Integer
ooConexion.Open() ' abrir conexión
iResultado = oComando.ExecuteNonQuery() ' ejecutar comando
LimpiarDatos()
ooConexion.Close() ' cerrar conexión
MessageBox.Show("Registros modificados Correctamente:" & iResultado)
End Sub
gracias de todas formas
saludos Jorge