Visual Basic.NET - traducir a Visual Basic

 
Vista:

traducir a Visual Basic

Publicado por Juan (1 intervención) el 05/11/2008 03:23:23
Hola a todos...me llamo Juan y estoy haciendo un sistema en VB.net.
Mi consulta es la siguiente...necesito que me traduzcan este codigo de C#:

this.BeginInvoke((MethodInvoker)delegate() { procedimiento(parametro); });

this hace referencia a un control de usuario...gracias y nos vemos en el ciber espacio
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:traducir a Visual Basic

Publicado por Harold V. (411 intervenciones) el 08/11/2008 15:57:36
Es algo parecido...........

Delegate Sub MyDelegate(myControl As Label, myArg2 As String)

Private Sub Button_Click(sender As Object, e As EventArgs)
Dim myArray(1) As Object

myArray(0) = New Label()
myArray(1) = "Enter a Value"
myTextBox.BeginInvoke(New MyDelegate(AddressOf DelegateMethod), myArray)
End Sub 'Button_Click

Public Sub DelegateMethod(myControl As Label, myCaption As String)
myControl.Location = New Point(16, 16)
myControl.Size = New Size(80, 25)
myControl.Text = myCaption
Me.Controls.Add(myControl)
End Sub 'DelegateMethod
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