|    
			
				14/04/2009, 09:51
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: febrero-2007 
						Mensajes: 165
					 Antigüedad: 18 años, 8 meses Puntos: 0 |  | 
  |  Respuesta: Quisiera saber si uso bien el BackGroundWorker  
  Donde falla es donde esta en cursiva
 Public Sub Datos()
 If operacion = "BUSQUEDA MULTIPLE" Then
 Else
 Try
 me.tbPanel.SelectTab(0)
 'crear conexion
 oConexion = New MySqlConnection
 oConexion.ConnectionString = cadena_conexion
 'crear adaptador
 Me.oDataAdapter = New MySqlDataAdapter("Select * from datosusuarios order by apellidos,nombre desc", oConexion)
 'Crear dataset
 Me.oDataSet = New DataSet
 oConexion.Open()
 'llenar con el adaptador el dataset
 Me.oDataAdapter.Fill(oDataSet, "datosusuarios")
 oConexion.Close()
 'establecer el indicador del registro
 'a mostrar de la tabla
 Me.iPosicionActual = 0
 Me.CargarDatos()
 CargarSectores()
 CargarPaises()
 CargarCOU()
 CargarAreaFP1()
 CargarAreaFP2()
 CargarAreaDiplo()
 CargarAreaLicen()
 CargarIdiomas()
 CargarInformatica()
 Catch ex As Exception
 MsgBox("Se ha(n) producido errore(s)" & ex.Message, MsgBoxStyle.Critical, "Error(es)")
 End Try
 End If
 End Sub
     |