Algo un poco extraño pero estaba buscando la manera de pasar los datos de una búsqueda de google a un listview, alguna idea?
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúAn exception of type 'System.InvalidOperationException' occurred in AutoLog.exe but was not handled in user code
Additional information: Error al crear el formulario. Consulte Exception.InnerException para obtener más detalles. Error: No se puede crear una instancia del control ActiveX '8856f961-340a-11d0-a96b-00c04fd705a2' porque el subproceso actual no está en un contenedor uniproceso.
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles hiloSegundoPlano.DoWork
Dim worker As BackgroundWorker = CType(sender, BackgroundWorker)
Call PasarList2aList1()
End Sub
Function PasarList2aList1(ByVal n As Integer,ByVal worker As BackgroundWorker,ByVal e As DoWorkEventArgs) As Long
For i = 0 To ListView2.Items.Count - 1
Dim oreg As New ListViewItem
Threading.Thread.Sleep("2000")
oreg = Me.ListView1.Items.Add(ListView2.Items(i).Text)
Next
Return
End Function
Me.ListView1.Items.Add("Test LOG")
An exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll but was not handled in user code
Additional information: Operación no válida a través de subprocesos: Se tuvo acceso al control 'ListView1' desde un subproceso distinto a aquel en que lo creó.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Cursor = Cursors.WaitCursor
'Create the objects needed to make the connection'
Dim sshConnectionInfo As New Renci.SshNet.PasswordConnectionInfo(SERVER, USER, PASS)
Dim sshClient As New Renci.SshNet.SshClient(sshConnectionInfo)
'Need to hold the command'
Dim cmd As Renci.SshNet.SshCommand
Using sshClient
'connect to the server'
sshClient.Connect()
If sshClient.IsConnected Then
'si esta conectado
'Run the command'
cmd = sshClient.RunCommand("y")
Threading.Thread.Sleep(2000)
cmd = sshClient.RunCommand("sed -i 's/VARS=.*/VARS=12/g' /tmp/dataconf.cfg #")
Threading.Thread.Sleep(2000)
cmd = sshClient.RunCommand("save #")
Threading.Thread.Sleep(2000)
cmd = sshClient.RunCommand("reboot #")
Me.Cursor = Cursors.Default
Else
'NO ESTA CONECTADO
End If
End Using
End Sub
echo "echo '<option value=\"opcion1\" selected>Opcion1</option>' >> /etc/opts.inc" > /etc/persistent/opts.it
<form action="data/savekey.php" method="POST" id="datos-ma">
<input type="password" maxlength="63" name="key1" id="llave-ma">
<button type="button" onclick="initUpdateMA()">Enviar</button>
</form>