[mono-vb] C# to Mono-VB conversion issue

Klaus Siebke ksiebke at web.de
Tue Mar 31 14:08:24 EDT 2009


Sorry, my fault !

I had to change the statement from:

artistNameCell.edited += on_artistNameCell_edited 

to:

AddHandler  artistNameCell.Edited, AddressOf on_artistNameCell_edited  


Now it works perfectly.




Klaus Siebke wrote:
> 
> Hi,
> 
> while converting an example of the Mono GtkSharp TreeView Tutorial
> (http://www.mono-project.com/GtkSharp_TreeView_Tutorial) from C# to
> Mono-VB I was facing the following issue:
> 
> I took this C# code ...
> 
> artistNameCell.Editable = true;
> artistNameCell.Edited += artistNameCell_Edited;
> private void artistNameCell_Edited (object o, Gtk.EditedArgs args)
> {
> //TODO: Write code to handle the edited event here.
> }
> 
> ... and converted it to Mono-VB:
> 
> artistNameCell.Editable = true
> artistNameCell.edited += on_artistNameCell_edited 
> Private Sub on_artistNameCell_edited(ByVal o As Object, ByVal args As
> Gtk.EditedArgs)
> 'TODO: Write code to handle the edited event here.
> End Sub
> 
> 
> But I got the following messages from the compiler:
> 
> [Task:File=/share/source/mono/vbnet/mykey/mykey/winSafe.vb , Line=261,
> Column=60, Type=Error, Priority=Normal, Description=Argument not specified
> for parameter 'args' of 'on_artistNameCell_edited((System.Object,
> Gtk.EditedArgs))'.(VBNC30455)]
> [Task:File=/share/source/mono/vbnet/mykey/mykey/winSafe.vb , Line=261,
> Column=60, Type=Error, Priority=Normal, Description=Argument not specified
> for parameter 'o' of 'on_artistNameCell_edited((System.Object,
> Gtk.EditedArgs))'.(VBNC30455)]
> 
> Does anybody know, what needs to be added here?
> 
> Thanks,
> Klaus
> 
> 

-- 
View this message in context: http://www.nabble.com/C--to-Mono-VB-conversion-issue-tp22805003p22805261.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list