Visual Basic - datos en un textbox

Life is soft - evento anual de software empresarial
 
Vista:

datos en un textbox

Publicado por Gustavo (5 intervenciones) el 19/06/2009 03:10:28
Que tal tengo el siguiente codigo y mi pregunta es si puedo meter en un text box el noControl y el estado separado por una coma o un espacio si si me gustaria saber como gracias.}

Using Con

com.CommandText = "SELECT NoControl, Estado FROM tblUsuarios WHERE (NoControl = 85000655)"

com.Connection = Con
dr = com.ExecuteReader()

If dr.HasRows Then

While dr.Read

TextBox1.Text = dr.GetValue(0)

End While

End If

End Using
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:datos en un textbox

Publicado por jaime guerrero (361 intervenciones) el 25/06/2009 21:20:17
TextBox1.Text = dr.GetValue(0) .tostring() & " , " & dr.GetValue(1) .tostring()
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar