does not appear form when wanting to call from class in visual studio

0

It turns out that I have a class where I do all my queries ql, punctually in one that I do an update, I want to call the form to indicate the textbox where is a data that I am going to edit, but the form does not appear that in particles, if others appear.

This is the class, and the form is called Creation: (When starting to write the name of the form (CreacionBaicacion), it should come out in the drop-down list, and it does not appear, but if the others form)

Public Sub editacreaubicacion()
    Dim insertar As New SqlClient.SqlCommand()
    insertar.CommandType = System.Data.CommandType.Text
    insertar.CommandText = "UPDATE creaubicacion SET tipo = '" & creaubicacion.textbox1.Text & "' WHERE idcomplementaria = '" & creaubicacion.tbxIdComple.Text & "'"
    insertar.Connection = conectar
    Try
        If ((insertar.ExecuteNonQuery() <> 0)) Then

            MessageBox.Show("REGISTRO ACTUALIZADO")

        End If
    Catch ex As Exception
        MessageBox.Show(ex.ToString)
    End Try
End Sub
    
asked by Francisca 25.10.2018 в 20:22
source

0 answers