View Full Version : Converter C# para Vb.net


cezarantoniosouza@yahoo.com.br
10-05-2006, 07:40 PM
Oi pessoal,
estou com um pouco de dificuldades em converter o seguinte código para
vb.net

this.GotFocus += new System.EventHandler(this.frmGestion_GotFocus);
this.Load += new System.EventHandler(this.frmGestion_Load);

Quando converto automaticamente em um site próprio para isso o
resultado é:

Me.GotFocus += New System.EventHandler(Me.frmGestion_GotFocus)
Me.Load += New System.EventHandler(Me.frmGestion_Load)
o problema é que isso não roda no vb, emite a seguinte mensagem:

'Public Event GotFocus(sender As Object, e As System.EventArgs)' is an
event, and cannot be called directly. Use a 'RaiseEvent' statement to
raise an event.'

Alguém pode me ajudar a resolver esta questão?

Cézar