From sfbler at web.de Mon Mar 2 17:25:59 2009
From: sfbler at web.de (larsux)
Date: Mon, 2 Mar 2009 14:25:59 -0800 (PST)
Subject: [mono-vb] Problems running Mono with VB.NET
Message-ID: <22226848.post@talk.nabble.com>
Hello,
I'm running Apache with mod_mono on a Kubuntu 8.10 system. If I test the
functionality with a aspx site using C# everything works fine.
Site code:
----------------------------------------------------------------------------
<%@ Page Language="C#" %>
ASP Test Page
----------------------------------------------------------------------------
But if I want to use vb.NET as programming language I'm experiencing an
error:
Site Code:
----------------------------------------------------------------------------
<%@ Page Language="VB" %>
ASP Test Page
---------------------------------------------------------------------------
Error:
---------------------------------------------------------------------------
Server Error in '/' Application
Process has not been started.
Description: HTTP 500. Error processing request.
Stack Trace:
System.InvalidOperationException: Process has not been started.
at System.Diagnostics.Process.get_ExitCode () [0x00000]
at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:get_ExitCode ()
at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000]
at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000]
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000]
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.String
virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000]
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.String
virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.BuildAssembly (System.String
virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x00000]
at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context)
[0x00000]
at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext
context, System.String requestType, System.String url, System.String path)
[0x00000]
at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context,
System.String url) [0x00000]
at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext ()
[0x00000]
Version information: Mono Version: 2.0.50727.42; ASP.NET Version:
2.0.50727.42
---------------------------------------------------------------------------
I hope there's anyone who knows this problem and can help me!
Thanks
Larsux
--
View this message in context: http://www.nabble.com/Problems-running-Mono-with-VB.NET-tp22226848p22226848.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From rolflists at ya.com Mon Mar 2 19:04:09 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Tue, 3 Mar 2009 01:04:09 +0100
Subject: [mono-vb] Problems running Mono with VB.NET
In-Reply-To: <22226848.post@talk.nabble.com>
References: <22226848.post@talk.nabble.com>
Message-ID: <007d01c99b93$98981010$c9c83030$@com>
Hi,
Which versions of mono and vbnc are you using? (mono --version and vbnc -?
in a terminal will show you this).
Rolf
> -----Original Message-----
> From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
> bounces at lists.ximian.com] On Behalf Of larsux
> Sent: lunes, 02 de marzo de 2009 23:26
> To: mono-vb at lists.ximian.com
> Subject: [mono-vb] Problems running Mono with VB.NET
>
>
> Hello,
>
> I'm running Apache with mod_mono on a Kubuntu 8.10 system. If I test
> the
> functionality with a aspx site using C# everything works fine.
>
> Site code:
> -----------------------------------------------------------------------
> -----
> <%@ Page Language="C#" %>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> ASP Test Page
>
>
>
>
>
> -----------------------------------------------------------------------
> -----
>
> But if I want to use vb.NET as programming language I'm experiencing an
> error:
>
> Site Code:
> -----------------------------------------------------------------------
> -----
> <%@ Page Language="VB" %>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> ASP Test Page
>
>
>
>
>
> -----------------------------------------------------------------------
> ----
>
> Error:
> -----------------------------------------------------------------------
> ----
> Server Error in '/' Application
> Process has not been started.
>
> Description: HTTP 500. Error processing request.
>
> Stack Trace:
>
> System.InvalidOperationException: Process has not been started.
> at System.Diagnostics.Process.get_ExitCode () [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.Diagnostics.Process:get_ExitCode ()
> at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
> (System.CodeDom.Compiler.CompilerParameters options, System.String[]
> fileNames) [0x00000]
> at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
> (System.CodeDom.Compiler.CompilerParameters options, System.String[]
> fileNames) [0x00000]
> at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile
> (System.CodeDom.Compiler.CompilerParameters options, System.String[]
> fileNames) [0x00000]
> at System.Web.Compilation.AssemblyBuilder.BuildAssembly
> (System.String
> virtualPath, System.CodeDom.Compiler.CompilerParameters options)
> [0x00000]
> at System.Web.Compilation.AssemblyBuilder.BuildAssembly
> (System.String
> virtualPath) [0x00000]
> at System.Web.Compilation.BuildManager.BuildAssembly (System.String
> virtualPath) [0x00000]
> at System.Web.Compilation.BuildManager.GetCompiledType (System.String
> virtualPath) [0x00000]
> at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
> (System.String virtualPath, System.Type requiredBaseType) [0x00000]
> at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
> virtualPath, System.String inputFile, System.Web.HttpContext context)
> [0x00000]
> at System.Web.UI.PageHandlerFactory.GetHandler
> (System.Web.HttpContext
> context, System.String requestType, System.String url, System.String
> path)
> [0x00000]
> at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
> context,
> System.String url) [0x00000]
> at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext ()
> [0x00000]
>
> Version information: Mono Version: 2.0.50727.42; ASP.NET Version:
> 2.0.50727.42
> -----------------------------------------------------------------------
> ----
>
> I hope there's anyone who knows this problem and can help me!
>
> Thanks
>
> Larsux
>
> --
> View this message in context: http://www.nabble.com/Problems-running-
> Mono-with-VB.NET-tp22226848p22226848.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
From rolflists at ya.com Thu Mar 5 03:19:34 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Thu, 5 Mar 2009 09:19:34 +0100
Subject: [mono-vb] Problems running Mono with VB.NET
In-Reply-To: <14605176.841351236179230825.JavaMail.nabble@isper.nabble.com>
References: <14605176.841351236179230825.JavaMail.nabble@isper.nabble.com>
Message-ID: <016b01c99d6b$1f5c3d50$5e14b7f0$@com>
Hi,
>
> Hi,
>
> here are the informations you want:
>
> Mono JIT compiler version 1.9.1 (tarball)
That's an old version, you really want 2.2.
> When I type vbnc then I get: command not found. I've googled vbnc and
> found out that this is the VB compiler but I thought the compiler is
> included in the mono packages I've installed though adept. Where do I
> get the package I need for Kubuntu 8.10 to compile VB code? I can't
> find the package mono-vbnc in adept....
I'm not sure about this one, it may be named mono-basic, or it's also
possible that it's not packaged for your distro.
In which case you can download the sources and build it yourself.
Rolf
>
> Thank you...
>
>
>
>
>
> Rolf Bjarne Kvinge-2 wrote:
> >
> > Hi,
> >
> > Which versions of mono and vbnc are you using? (mono --version and
> vbnc -?
> > in a terminal will show you this).
> >
> > Rolf
> >
>
From ksiebke at web.de Thu Mar 5 05:15:30 2009
From: ksiebke at web.de (Klaus Siebke)
Date: Thu, 5 Mar 2009 02:15:30 -0800 (PST)
Subject: [mono-vb] Problems running Mono with VB.NET
In-Reply-To: <016b01c99d6b$1f5c3d50$5e14b7f0$@com>
References: <22226848.post@talk.nabble.com>
<016b01c99d6b$1f5c3d50$5e14b7f0$@com>
Message-ID: <22348783.post@talk.nabble.com>
Hi,
I'm using Kubuntu as well, but 8.04 (Hardy), because KDE4 is still missing
some features and KDE3.5 seems to be more stable for me.
For 8.04 there are precompiled packages:
Click on the "Third Party Software" tab, click "Add", type the following
line, then click "OK":
deb http://directhex.mfgames.com/ hardy main
I don't know if they have packages for 8.10 too.
The Mono Basic version above is working perfect and I can recommend it.
I've already created several programs (even Gtk# based) with it.
However, if you need the latest version, you still can build it yourself. I
had to do it for the Windows port of a program, because the "-target:winexe"
parameter is not supported by the older version. It's not very difficult.
Have a nice day,
Klaus
Rolf Bjarne Kvinge-2 wrote:
>
> Hi,
>>
>> Hi,
>>
>> here are the informations you want:
>>
>> Mono JIT compiler version 1.9.1 (tarball)
>
> That's an old version, you really want 2.2.
>
>> When I type vbnc then I get: command not found. I've googled vbnc and
>> found out that this is the VB compiler but I thought the compiler is
>> included in the mono packages I've installed though adept. Where do I
>> get the package I need for Kubuntu 8.10 to compile VB code? I can't
>> find the package mono-vbnc in adept....
>
> I'm not sure about this one, it may be named mono-basic, or it's also
> possible that it's not packaged for your distro.
>
> In which case you can download the sources and build it yourself.
>
> Rolf
>
>>
>> Thank you...
>>
>>
>>
>>
>>
>> Rolf Bjarne Kvinge-2 wrote:
>> >
>> > Hi,
>> >
>> > Which versions of mono and vbnc are you using? (mono --version and
>> vbnc -?
>> > in a terminal will show you this).
>> >
>> > Rolf
>> >
>>
>
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>
>
--
View this message in context: http://www.nabble.com/Problems-running-Mono-with-VB.NET-tp22226848p22348783.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From stifu at free.fr Fri Mar 13 03:45:04 2009
From: stifu at free.fr (Stifu)
Date: Fri, 13 Mar 2009 00:45:04 -0700 (PDT)
Subject: [mono-vb] Problem of path
In-Reply-To: <22482241.post@talk.nabble.com>
References: <22482241.post@talk.nabble.com>
Message-ID: <22491609.post@talk.nabble.com>
Hi,
Check this out:
http://www.mono-project.com/Guidelines:Application_Portability#Path_Separators
ericcc wrote:
>
> Hello
>
> I have build some applications on Windows XP with Visual Basic 2008
> Express.
> Now I would like to run it on my Debian/testing machine.
>
> I have installed all needed library (I hope) but now I have a problem with
> the file system when I try to read/write some file :
> Unhandled Exception: System.IO.FileNotFoundException: Could not find file
> "/home/ericc/BBEditor2\languages\english.xml".
> File name: '/home/ericc/BBEditor2\languages\english.xml'
>
> It's a common problem, I think, when you move from windows to Linux but is
> it a simple way to solve it ?
>
> Should I do a specific build with replacing every "\" by a "/" ?
> Is it a way to detect if my application run under mono ?
>
> Thanks for your help
>
> ericc
>
--
View this message in context: http://www.nabble.com/Problem-of-path-tp22482241p22491609.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From stifu at free.fr Fri Mar 13 11:15:09 2009
From: stifu at free.fr (Stifu)
Date: Fri, 13 Mar 2009 08:15:09 -0700 (PDT)
Subject: [mono-vb] Toolstrip dynamically build
In-Reply-To: <22496688.post@talk.nabble.com>
References: <22496688.post@talk.nabble.com>
Message-ID: <22498643.post@talk.nabble.com>
When you say it works under Windows, I take it you mean Windows with .NET,
not Windows with Mono, right?
You could check if the bug is still in Mono 2.4 RC2, and if it is, fill a
bug report with a reduced test case.
ericcc wrote:
>
> Hello
>
> After corrected my stupid problem with path, my application now "almost"
> work.
> I just have some little annoying problem as this one:
> I have a toolbar (or ToolStrip) which is build when the application start
> with information given by an xml file.
> During execution, it's possible to change the definition (the xml file)
> and the toolbar is automatically rebuild.
> But first, I "clear" its content with the following code
>
>
>> For i = 1 To ToolStrip2.Items.Count
>> ToolStrip2.Items.Item(0).Dispose()
>> Next
>>
>
> It works perfectly under windows but not under Linux.
> I try with Debian/Mono 2.0 and Suse(VMWare)/Mono 2.2 .
>
> Is it a bug with mono ?
>
> I try to add " ToolStrip2.Refresh()" after the loop to force the redraw of
> the toolbar, but without success
>
> Any idea ?
>
> ericc
>
>
>
--
View this message in context: http://www.nabble.com/Toolstrip-dynamically-build-tp22496688p22498643.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From eric.crastes at gmail.com Fri Mar 13 14:18:59 2009
From: eric.crastes at gmail.com (ericcc)
Date: Fri, 13 Mar 2009 11:18:59 -0700 (PDT)
Subject: [mono-vb] Toolstrip dynamically build
In-Reply-To: <22498643.post@talk.nabble.com>
References: <22496688.post@talk.nabble.com> <22498643.post@talk.nabble.com>
Message-ID: <22501230.post@talk.nabble.com>
Yes, I'm talking about Windows with .NET on the machine where Visual Studio
is installed.
When you talk about Mono 2.4 RC2, I guess, you talk about SVN build ?
I try to add the repository
(http://mono.ximian.com/monobuild/snapshot/download-trunk/suse-110-i586) to
YAST in the VMWare/Suse image provided here but without success. (I 'm not a
big specialist of Suse! I work with Debian since a very long time)
In "Software repositories" when I try to add this URL, it reply "Unable to
create repository" ...
May be I can to to download and install directly the .rpm , but which one ?
"mono-complete" is enough ?
ericc
Stifu wrote:
>
> When you say it works under Windows, I take it you mean Windows with .NET,
> not Windows with Mono, right?
> You could check if the bug is still in Mono 2.4 RC2, and if it is, fill a
> bug report with a reduced test case.
>
--
View this message in context: http://www.nabble.com/Toolstrip-dynamically-build-tp22496688p22501230.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From stifu at free.fr Fri Mar 13 18:25:39 2009
From: stifu at free.fr (Stifu)
Date: Fri, 13 Mar 2009 15:25:39 -0700 (PDT)
Subject: [mono-vb] Toolstrip dynamically build
In-Reply-To: <22501230.post@talk.nabble.com>
References: <22496688.post@talk.nabble.com> <22498643.post@talk.nabble.com>
<22501230.post@talk.nabble.com>
Message-ID: <22506174.post@talk.nabble.com>
Mono 2.4 RC2 is not the same as SVN. Basically, it doesn't have the newest
stuff, but it's more stable.
The openSUSE repos for it are there:
http://mono.ximian.com/monobuild/preview/download-preview/
ericcc wrote:
>
> Yes, I'm talking about Windows with .NET on the machine where Visual
> Studio is installed.
>
> When you talk about Mono 2.4 RC2, I guess, you talk about SVN build ?
> I try to add the repository
> (http://mono.ximian.com/monobuild/snapshot/download-trunk/suse-110-i586)
> to YAST in the VMWare/Suse image provided here but without success. (I 'm
> not a big specialist of Suse! I work with Debian since a very long time)
> In "Software repositories" when I try to add this URL, it reply "Unable to
> create repository" ...
>
> May be I can to to download and install directly the .rpm , but which one
> ?
> "mono-complete" is enough ?
>
> ericc
>
>
> Stifu wrote:
>>
>> When you say it works under Windows, I take it you mean Windows with
>> .NET, not Windows with Mono, right?
>> You could check if the bug is still in Mono 2.4 RC2, and if it is, fill a
>> bug report with a reduced test case.
>>
>
>
--
View this message in context: http://www.nabble.com/Toolstrip-dynamically-build-tp22496688p22506174.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From thuebner at gmx.de Fri Mar 13 17:38:59 2009
From: thuebner at gmx.de (Thomas Huebner)
Date: Fri, 13 Mar 2009 22:38:59 +0100
Subject: [mono-vb] No element named ListViewItemCount could be found
Message-ID:
Hi Newsgroup,
these are my first contacts with mono. Some users ask me to make my
VB2008 (NET2) running under Mono. (it already runs under Wine but I feel
Mono could be a better coice)
I have checked the project with MoMA and found 7 Issues which I could
work around by using the methods depending on runtime.
Now I get an Exeption while loading the mainform. I have a lot of
listviews in the project which are to 95% in report mode and use 60% the
Listview.Groups.
The errormessage as follow (the Project do not contains
"ListViewItemCount" - google show no results) Where I can find the
rootcause for this exeption?:
Unhandled Exception: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.Runtime.Serialization.SerializationException: No element named
ListViewItemCount could be found.
at System.Runtime.Serialization.SerializationInfo.GetValue
(System.String name, System.Type type) [0x00000]
at System.Runtime.Serialization.SerializationInfo.GetInt32
(System.String name) [0x00000]
at System.Windows.Forms.ListViewGroup..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context) [0x00000]
at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000]
at System.Runtime.Serialization.ObjectRecord.LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context) [0x00000]
at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object&
result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000]
at System.Resources.ResourceReader.ReadNonPredefinedValue
(System.Type exp_type) [0x00000]
at System.Resources.ResourceReader.ReadValueVer2 (Int32 type_index)
[0x00000]
at System.Resources.ResourceReader.LoadResourceValues
(.ResourceCacheItem[] store) [0x00000]
at System.Resources.ResourceReader+ResourceEnumerator.FillCache ()
[0x00000]
at System.Resources.ResourceReader+ResourceEnumerator..ctor
(System.Resources.ResourceReader readerToEnumerate) [0x00000]
at System.Resources.ResourceReader.GetEnumerator () [0x00000]
at System.Resources.ResourceSet.ReadResources () [0x00000]
at System.Resources.ResourceSet.GetEnumerator () [0x00000]
at System.ComponentModel.ComponentResourceManager.BuildResources
(System.Globalization.CultureInfo culture, System.Collections.Hashtable
resources) [0x00000]
at System.ComponentModel.ComponentResourceManager.BuildResources
(System.Globalization.CultureInfo culture, System.Collections.Hashtable
resources) [0x00000]
at System.ComponentModel.ComponentResourceManager.BuildResources
(System.Globalization.CultureInfo culture, System.Collections.Hashtable
resources) [0x00000]
at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName,
System.Globalization.CultureInfo culture) [0x00000]
at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName) [0x00000]
at microMon.ucClients.InitializeComponent () [0x00000]
at (wrapper remoting-invoke-with-check)
microMon.ucClients:InitializeComponent ()
at microMon.ucClients..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) microMon.ucClients:.ctor ()
at microMon.frm_Main.InitializeComponent () [0x00000]
at (wrapper remoting-invoke-with-check)
microMon.frm_Main:InitializeComponent ()
at microMon.frm_Main..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) microMon.frm_Main:.ctor ()
at microMon.mod_main.main () [0x00000]
From eric.crastes at gmail.com Thu Mar 12 14:02:38 2009
From: eric.crastes at gmail.com (ericcc)
Date: Thu, 12 Mar 2009 11:02:38 -0700 (PDT)
Subject: [mono-vb] Problem of path
Message-ID: <22482241.post@talk.nabble.com>
Hello
I have build some applications on Windows XP with Visual Basic 2008 Express.
Now I would like to run it on my Debian/testing machine.
I have installed all needed library (I hope) but now I have a problem with
the file system when I try to read/write some file :
Unhandled Exception: System.IO.FileNotFoundException: Could not find file
"/home/ericc/BBEditor2\languages\english.xml".
File name: '/home/ericc/BBEditor2\languages\english.xml'
It's a common problem, I think, when you move from windows to Linux but is
it a simple way to solve it ?
Should I do a specific build with replacing every "\" by a "/" ?
Is it a way to detect if my application run under mono ?
Thanks for your help
ericc
--
View this message in context: http://www.nabble.com/Problem-of-path-tp22482241p22482241.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From eric.crastes at gmail.com Fri Mar 13 09:04:02 2009
From: eric.crastes at gmail.com (ericcc)
Date: Fri, 13 Mar 2009 06:04:02 -0700 (PDT)
Subject: [mono-vb] Problem of path
In-Reply-To: <22491609.post@talk.nabble.com>
References: <22482241.post@talk.nabble.com> <22491609.post@talk.nabble.com>
Message-ID: <22495959.post@talk.nabble.com>
Thanks, that solve my problem :handshake:
ericc
Stifu wrote:
>
> Hi,
>
> Check this out:
> http://www.mono-project.com/Guidelines:Application_Portability#Path_Separators
>
>
--
View this message in context: http://www.nabble.com/Problem-of-path-tp22482241p22495959.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From eric.crastes at gmail.com Fri Mar 13 09:47:25 2009
From: eric.crastes at gmail.com (ericcc)
Date: Fri, 13 Mar 2009 06:47:25 -0700 (PDT)
Subject: [mono-vb] Toolstrip dynamically build
Message-ID: <22496688.post@talk.nabble.com>
Hello
After corrected my stupid problem with path, my application now "almost"
work.
I just have some little annoying problem as this one:
I have a toolbar (or ToolStrip) which is build when the application start
with information given by an xml file.
During execution, it's possible to change the definition (the xml file) and
the toolbar is automatically rebuild.
But first, I "clear" its content with the following code
> For i = 1 To ToolStrip2.Items.Count
> ToolStrip2.Items.Item(0).Dispose()
> Next
>
It works perfectly under windows but not under Linux.
I try with Debian/Mono 2.0 and Suse(VMWare)/Mono 2.2 .
Is it a bug with mono ?
I try to add " ToolStrip2.Refresh()" after the loop to force the redraw of
the toolbar, but without success
Any idea ?
ericc
--
View this message in context: http://www.nabble.com/Toolstrip-dynamically-build-tp22496688p22496688.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From alloydog at yahoo.co.uk Wed Mar 11 14:07:19 2009
From: alloydog at yahoo.co.uk (alloydog)
Date: Wed, 11 Mar 2009 11:07:19 -0700 (PDT)
Subject: [mono-vb] Getting started with Mono-VB / Visual Basic 2005
Message-ID: <22461148.post@talk.nabble.com>
I tried a few web searches for example, getting started mono "Visual Basic
2005", but couldn't really get the answers I need.
I have just hold of the book "Build a Program Now!" with Microsoft Visual
Basic 2005 Express Edition.
This should be fine on my work PC running Windows, but I would like to do
some study at home.
My PC is running a small Debian/Ubuntu-ish based distribution (Debris). I
have installed the following with apt-get:
libmono-corlib1.0-cil
libmono-corlib2.0-cil
libmono-data-tds2.0-cil
libmono-peapi2.0-cil
libmono-security2.0-cil
libmono-sharpzip2.84-cil
libmono-system-data2.0-cil
libmono-system-web2.0-cil
libmono-system2.0-cil
libmono0 libmono2.0-cil
mono-2.0-devel
mono-common mono-gac
mono-jit mono-runtime
(OK, I installed mono-2.0-devel, apt did the rest...)
What do I need to get a similar IDE to the Visual Basic one? Is there a
similar IDE to the Visual Basic one?
Is it possible/practical to follow the Microsoft book using Mono?
--
View this message in context: http://www.nabble.com/Getting-started-with-Mono-VB---Visual-Basic-2005-tp22461148p22461148.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From rolflists at ya.com Mon Mar 16 03:50:03 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Mon, 16 Mar 2009 08:50:03 +0100
Subject: [mono-vb] Getting started with Mono-VB / Visual Basic 2005
In-Reply-To: <22461148.post@talk.nabble.com>
References: <22461148.post@talk.nabble.com>
Message-ID: <006301c9a60b$e8cc8b60$ba65a220$@com>
Hi,
> What do I need to get a similar IDE to the Visual Basic one? Is there a
> similar IDE to the Visual Basic one?
You want MonoDevelop.
> Is it possible/practical to follow the Microsoft book using Mono?
VB support in MonoDevelop is fairly limited, basically you can only create
and build projects (things such as intellisense, auto-completion or UI
designer are not implemented).
Also have in mind that the compiler is less stable than our C# counterpart,
especially with invalid code (if you write wrong code, you'll likely crash
the compiler or get funny error messages).
IMHO, you should try it out though ;-)
Rolf
> --
> View this message in context: http://www.nabble.com/Getting-started-
> with-Mono-VB---Visual-Basic-2005-tp22461148p22461148.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
From rolflists at ya.com Mon Mar 16 03:55:10 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Mon, 16 Mar 2009 08:55:10 +0100
Subject: [mono-vb] No element named ListViewItemCount could be found
In-Reply-To:
References:
Message-ID: <006401c9a60c$8ddb7d00$a9927700$@com>
Hi,
> Hi Newsgroup,
>
> these are my first contacts with mono. Some users ask me to make my
> VB2008 (NET2) running under Mono. (it already runs under Wine but I
> feel Mono could be a better coice)
>
> I have checked the project with MoMA and found 7 Issues which I could
> work around by using the methods depending on runtime.
>
> Now I get an Exeption while loading the mainform. I have a lot of
> listviews in the project which are to 95% in report mode and use 60%
> the Listview.Groups.
>
This is actually a question for the mono-winforms-list, but I'll try to give
an answer anyway.
> The errormessage as follow (the Project do not contains
> "ListViewItemCount" - google show no results) Where I can find the
> rootcause for this exeption?:
>
>
> Unhandled Exception: System.Reflection.TargetInvocationException:
> Exception has been thrown by the target of an invocation. --->
> System.Runtime.Serialization.SerializationException: No element named
> ListViewItemCount could be found.
>
Looks like mono is having a problem deserializing the resources for a form,
a bug report (bugzilla.novell.com) would be very welcome.
However I think you can work around this problem by building with mono
(install MonoDevelop, open your VS solution in MonoDevelop and run/build
it). This way the resources will be generated by mono and mono shouldn't
have any problems loading them.
Rolf
From jhmgbl2 at t-online.de Tue Mar 24 17:02:07 2009
From: jhmgbl2 at t-online.de (Easy_Rider9999)
Date: Tue, 24 Mar 2009 14:02:07 -0700 (PDT)
Subject: [mono-vb] how to run application developed in vb6 in windows
xp2 operating system on linux
In-Reply-To: <21741382.post@talk.nabble.com>
References: <21140670.post@talk.nabble.com> <21741382.post@talk.nabble.com>
Message-ID: <22689708.post@talk.nabble.com>
With wine it is easy to run VB6 applications, it is also possible to install
Visual Studio6. It is quite difficult to install ODBC or OLEDB, you need to
copy and register a lot of DLLs from an existing XP-Installation. I have had
a lot of problems with running a VB9.Net2.0 application, even though I
converted my database form mdb to SQLite.
Hans
--
View this message in context: http://www.nabble.com/how-to-run-application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-tp21140670p22689708.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From kustarova at fastmq.com Fri Mar 27 08:28:43 2009
From: kustarova at fastmq.com (Tamara Kustarova)
Date: Fri, 27 Mar 2009 13:28:43 +0100
Subject: [mono-vb] mono vb compile error
Message-ID: <1238156923.5847.5.camel@jozsi>
Hello,
I am trying to port my visual basic application to unix, Ubuntu 8.04.
The original application was developed on Windows Xp, using Microsoft
Visual Basic studio. When I try to compile it in MonoDevelop, I get the
error:
[Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/ , Line=1, Column=1, Type=Error, Priority=Normal, Description=Unexpected error: There has been an internal error in the compiler.(VBNC99999)]
When I double click on the error, I get a pop up windows, which says:
File not
found: /home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/
What kind of file is it looking for? i tried to google it, but couldn't
find anything.
I am using mono version 2.0 and vbnc version 2.0.
Thank you for your advice.
Tamara
From rolflists at ya.com Mon Mar 30 21:03:43 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Tue, 31 Mar 2009 03:03:43 +0200
Subject: [mono-vb] how to run application developed in vb6 in windows
xp2 operating system on linux
In-Reply-To: <22689708.post@talk.nabble.com>
References: <21140670.post@talk.nabble.com> <21741382.post@talk.nabble.com>
<22689708.post@talk.nabble.com>
Message-ID: <009601c9b19c$8a4daa50$9ee8fef0$@com>
Hi,
>
> With wine it is easy to run VB6 applications, it is also possible to
> install Visual Studio6. It is quite difficult to install ODBC or OLEDB,
you
> need to copy and register a lot of DLLs from an existing XP-Installation.
If you need to run a VB6 application on Linux I don't know any other way
than to try with wine [*]
> I have hada lot of problems with running a VB9.Net2.0 application, even
though I
> converted my database form mdb to SQLite.
To run VB.Net applications you can use mono (see www.mono-project.com for
binaries, or check with your distribution).
*) You can also try to upgrade your VB6 application to VB.Net.
>
> Hans
> --
> View this message in context: http://www.nabble.com/how-to-run-
> application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-
> tp21140670p22689708.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
From rolflists at ya.com Mon Mar 30 21:19:35 2009
From: rolflists at ya.com (Rolf Bjarne Kvinge)
Date: Tue, 31 Mar 2009 03:19:35 +0200
Subject: [mono-vb] mono vb compile error
In-Reply-To: <1238156923.5847.5.camel@jozsi>
References: <1238156923.5847.5.camel@jozsi>
Message-ID: <009701c9b19e$c2133e80$4639bb80$@com>
Hi,
> Hello,
>
> I am trying to port my visual basic application to unix, Ubuntu 8.04.
> The original application was developed on Windows Xp, using Microsoft
> Visual Basic studio. When I try to compile it in MonoDevelop, I get the
> error:
>
> [Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/ enerator> , Line=1, Column=1, Type=Error, Priority=Normal,
> Description=Unexpected error: There has been an internal error in the
> compiler.(VBNC99999)]
>
> When I double click on the error, I get a pop up windows, which says:
> File not found:
> /home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/
>
> What kind of file is it looking for? i tried to google it, but couldn't
> find anything.
This is a compiler crash, and the file name is also wrong.
Which version of vbnc (the compiler) are you using? (open a terminal window
and type 'vbnc' will tell you)
Would it be possible to get a copy of your project so that I can try to
figure out what's going wrong?
Rolf
>
> I am using mono version 2.0 and vbnc version 2.0.
>
> Thank you for your advice.
>
> Tamara
>
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
From kustarova at fastmq.com Tue Mar 31 03:32:23 2009
From: kustarova at fastmq.com (Tamara Kustarova)
Date: Tue, 31 Mar 2009 09:32:23 +0200
Subject: [mono-vb] mono vb compile error
In-Reply-To: <009701c9b19e$c2133e80$4639bb80$@com>
References: <1238156923.5847.5.camel@jozsi>
<009701c9b19e$c2133e80$4639bb80$@com>
Message-ID: <1238484744.5828.8.camel@jozsi>
Hello,
thank you for your help.
The version of vbnc I use is: version (Mono 2.0 -r)
I include the projects that I tried to compile. First, I compile cszmq,
to create cszmq.dll (I set the option sign the assembly with the key
zmq_strong_name.snk), then I install cszmq.dll to gac (sudo gacutil -i
cszmq.dll). Then I try to compile vb_local_lat and I get the error I
wrote you about. The error is:
[Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_local_lat/ , Line=1, Column=1, Type=Error, Priority=Normal, Description=Unexpected error: There has been an internal error in the compiler.(VBNC99999)]
when I click on the error, I get a popup saying:
File not
found: /home/tamara/Projects/trunk/windows/vbzmq/vb_local_lat/ .
Tamara
On Tue, 2009-03-31 at 03:19 +0200, Rolf Bjarne Kvinge wrote:
> Hi,
>
> > Hello,
> >
> > I am trying to port my visual basic application to unix, Ubuntu 8.04.
> > The original application was developed on Windows Xp, using Microsoft
> > Visual Basic studio. When I try to compile it in MonoDevelop, I get the
> > error:
> >
> > [Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/ > enerator> , Line=1, Column=1, Type=Error, Priority=Normal,
> > Description=Unexpected error: There has been an internal error in the
> > compiler.(VBNC99999)]
> >
> > When I double click on the error, I get a pop up windows, which says:
> > File not found:
> > /home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/
> >
> > What kind of file is it looking for? i tried to google it, but couldn't
> > find anything.
>
> This is a compiler crash, and the file name is also wrong.
>
> Which version of vbnc (the compiler) are you using? (open a terminal window
> and type 'vbnc' will tell you)
>
> Would it be possible to get a copy of your project so that I can try to
> figure out what's going wrong?
>
> Rolf
>
> >
> > I am using mono version 2.0 and vbnc version 2.0.
> >
> > Thank you for your advice.
> >
> > Tamara
> >
> >
> > _______________________________________________
> > Mono-vb mailing list
> > Mono-vb at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-vb
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cszmq.zip
Type: application/zip
Size: 20837 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-vb/attachments/20090331/6e4ce9dd/attachment-0002.zip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vb_local_lat.zip
Type: application/zip
Size: 25853 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-vb/attachments/20090331/6e4ce9dd/attachment-0003.zip
From ksiebke at web.de Tue Mar 31 06:23:58 2009
From: ksiebke at web.de (Klaus Siebke)
Date: Tue, 31 Mar 2009 03:23:58 -0700 (PDT)
Subject: [mono-vb] mono vb compile error
In-Reply-To: <1238484744.5828.8.camel@jozsi>
References: <1238156923.5847.5.camel@jozsi>
<009701c9b19e$c2133e80$4639bb80$@com>
<1238484744.5828.8.camel@jozsi>
Message-ID: <22802308.post@talk.nabble.com>
Hi Tamara,
this is your lucky day - I had some time this morning and corrected your
program (see attached zip file).
All corrections are marked with my initials ($KS).
To keep it simple I opened a new MonoDevelop solution and pasted your code
into the main module Application.vb.
Please make sure that you've added your DLL (cszmq.dll) to the references as
a .NET assembly.
Then everything should work fine.
Here's my test output:
haegar at nydam:~/temp/vb_local_lat/vb_local_lat/vb_local_lat/bin/Debug$
./vb_local_lat.exe localhost 512 10
message size: 512 [B]
roundtrip count: 10
Your average latency is 9250,00 [us]
Have a nice day,
Klaus
http://www.nabble.com/file/p22802308/Application.vb.zip Application.vb.zip
TamaraKustarova wrote:
>
> Hello,
>
> thank you for your help.
> The version of vbnc I use is: version (Mono 2.0 -r)
>
> I include the projects that I tried to compile. First, I compile cszmq,
> to create cszmq.dll (I set the option sign the assembly with the key
> zmq_strong_name.snk), then I install cszmq.dll to gac (sudo gacutil -i
> cszmq.dll). Then I try to compile vb_local_lat and I get the error I
> wrote you about. The error is:
>
> [Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_local_lat/
> , Line=1, Column=1, Type=Error, Priority=Normal, Description=Unexpected
> error: There has been an internal error in the compiler.(VBNC99999)]
>
> when I click on the error, I get a popup saying:
> File not
> found:
> /home/tamara/Projects/trunk/windows/vbzmq/vb_local_lat/ .
>
> Tamara
>
> On Tue, 2009-03-31 at 03:19 +0200, Rolf Bjarne Kvinge wrote:
>> Hi,
>>
>> > Hello,
>> >
>> > I am trying to port my visual basic application to unix, Ubuntu 8.04.
>> > The original application was developed on Windows Xp, using Microsoft
>> > Visual Basic studio. When I try to compile it in MonoDevelop, I get the
>> > error:
>> >
>> > [Task:File=/home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/> > enerator> , Line=1, Column=1, Type=Error, Priority=Normal,
>> > Description=Unexpected error: There has been an internal error in the
>> > compiler.(VBNC99999)]
>> >
>> > When I double click on the error, I get a pop up windows, which says:
>> > File not found:
>> > /home/tamara/Projects/trunk/windows/vbzmq/vb_remote_lat/
>> >
>> > What kind of file is it looking for? i tried to google it, but couldn't
>> > find anything.
>>
>> This is a compiler crash, and the file name is also wrong.
>>
>> Which version of vbnc (the compiler) are you using? (open a terminal
>> window
>> and type 'vbnc' will tell you)
>>
>> Would it be possible to get a copy of your project so that I can try to
>> figure out what's going wrong?
>>
>> Rolf
>>
>> >
>> > I am using mono version 2.0 and vbnc version 2.0.
>> >
>> > Thank you for your advice.
>> >
>> > Tamara
>> >
>> >
>> > _______________________________________________
>> > Mono-vb mailing list
>> > Mono-vb at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-vb
>>
>
>
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>
>
--
View this message in context: http://www.nabble.com/mono-vb-compile-error-tp22771184p22802308.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From jhmgbl2 at t-online.de Tue Mar 31 07:59:06 2009
From: jhmgbl2 at t-online.de (Easy_Rider9999)
Date: Tue, 31 Mar 2009 04:59:06 -0700 (PDT)
Subject: [mono-vb] how to run application developed in vb6 in windows
xp2 operating system on linux
In-Reply-To: <009601c9b19c$8a4daa50$9ee8fef0$@com>
References: <21140670.post@talk.nabble.com> <21741382.post@talk.nabble.com>
<22689708.post@talk.nabble.com>
<009601c9b19c$8a4daa50$9ee8fef0$@com>
Message-ID: <22803630.post@talk.nabble.com>
I have ported my VB6 application to VB.Net, but with mono there are a lot of
crashes!
VB6+wine was working better.
Hans
Rolf Bjarne Kvinge-2 wrote:
>
> Hi,
>
>>
>> With wine it is easy to run VB6 applications, it is also possible to
>> install Visual Studio6. It is quite difficult to install ODBC or OLEDB,
> you
>> need to copy and register a lot of DLLs from an existing XP-Installation.
>
>
> If you need to run a VB6 application on Linux I don't know any other way
> than to try with wine [*]
>
>> I have hada lot of problems with running a VB9.Net2.0 application, even
> though I
>> converted my database form mdb to SQLite.
>
> To run VB.Net applications you can use mono (see www.mono-project.com for
> binaries, or check with your distribution).
>
> *) You can also try to upgrade your VB6 application to VB.Net.
>
>>
>> Hans
>> --
>> View this message in context: http://www.nabble.com/how-to-run-
>> application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-
>> tp21140670p22689708.html
>> Sent from the Mono - VB mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mono-vb mailing list
>> Mono-vb at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-vb
>
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>
>
--
View this message in context: http://www.nabble.com/how-to-run-application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-tp21140670p22803630.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From stifu at free.fr Tue Mar 31 09:35:50 2009
From: stifu at free.fr (Stifu)
Date: Tue, 31 Mar 2009 06:35:50 -0700 (PDT)
Subject: [mono-vb] how to run application developed in vb6 in windows
xp2 operating system on linux
In-Reply-To: <22803630.post@talk.nabble.com>
References: <21140670.post@talk.nabble.com> <21741382.post@talk.nabble.com>
<22689708.post@talk.nabble.com>
<009601c9b19c$8a4daa50$9ee8fef0$@com>
<22803630.post@talk.nabble.com>
Message-ID: <22804931.post@talk.nabble.com>
It's unlikely everything in your app makes Mono crash, it must be something
specific... Ideally, you should try to nail it down and file a bug report.
By the way, are you using a recent Mono version? If you're using an old one,
you're bound to stumble on bugs that have already been fixed.
Easy_Rider9999 wrote:
>
> I have ported my VB6 application to VB.Net, but with mono there are a lot
> of crashes!
> VB6+wine was working better.
>
> Hans
>
> Rolf Bjarne Kvinge-2 wrote:
>>
>> Hi,
>>
>>>
>>> With wine it is easy to run VB6 applications, it is also possible to
>>> install Visual Studio6. It is quite difficult to install ODBC or OLEDB,
>> you
>>> need to copy and register a lot of DLLs from an existing
>>> XP-Installation.
>>
>>
>> If you need to run a VB6 application on Linux I don't know any other way
>> than to try with wine [*]
>>
>>> I have hada lot of problems with running a VB9.Net2.0 application, even
>> though I
>>> converted my database form mdb to SQLite.
>>
>> To run VB.Net applications you can use mono (see www.mono-project.com for
>> binaries, or check with your distribution).
>>
>> *) You can also try to upgrade your VB6 application to VB.Net.
>>
>>>
>>> Hans
>>> --
>>> View this message in context: http://www.nabble.com/how-to-run-
>>> application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-
>>> tp21140670p22689708.html
>>> Sent from the Mono - VB mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Mono-vb mailing list
>>> Mono-vb at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-vb
>>
>> _______________________________________________
>> Mono-vb mailing list
>> Mono-vb at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-vb
>>
>>
>
>
--
View this message in context: http://www.nabble.com/how-to-run-application-developed-in-vb6-in-windows-xp2-operating-system-on-linux-tp21140670p22804931.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From ksiebke at web.de Tue Mar 31 11:39:19 2009
From: ksiebke at web.de (Klaus Siebke)
Date: Tue, 31 Mar 2009 08:39:19 -0700 (PDT)
Subject: [mono-vb] C# to Mono-VB conversion issue
Message-ID: <22805003.post@talk.nabble.com>
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-tp22805003p22805003.html
Sent from the Mono - VB mailing list archive at Nabble.com.
From ksiebke at web.de Tue Mar 31 14:08:24 2009
From: ksiebke at web.de (Klaus Siebke)
Date: Tue, 31 Mar 2009 11:08:24 -0700 (PDT)
Subject: [mono-vb] C# to Mono-VB conversion issue
In-Reply-To: <22805003.post@talk.nabble.com>
References: <22805003.post@talk.nabble.com>
Message-ID: <22805261.post@talk.nabble.com>
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.