I am converting a VB6 application to a VB.net application. I have been able to convert all of the code properly other than lines calling the MSComm.CommPort property. I cannot find an equivalent to this property anywhere.
All of information I have found on converting from VB6 to VB.NET provides a code example like this, but it never explain where the MSComm.CommPort control is dealt with.
If anyone can tell me the VB.NET Comm Port class equivalent, or point me in the direction of a proper explanation, it would be greatly appreciated.
Here you go have a read of this tutorial http://www.dreamincode.net/forums/topic/37361-serial-port-communication-in-vbnet/
Related
I am working on migration of VB6 Application to VB.net.
the VB6 code uses ChrB quite often and I need to know how to convert it into vb.net
has anyone faced any similar issue..?
Regards,
Rasheed
VB.NET doesn’t support “byte-oriented” string methods.
VB Migration Partner provides the ChrB6 replacement method, which approximates the original VB6 method’s behavior but isn’t guaranteed to work well in all circumstances. This replacement method is marked as obsolete and methods invocations are flagged with a migration warning.
I have been struggling for a while on how to count characters using delegates on vb.net (console application). If anyone is able to explain how to this, I would greatly appreciate it. Thanks.
Is there a way to do this in vb.net? I've searched everywhere but cant find any answers. Any help would be appreciated.
You can use endpoint device events
http://msdn.microsoft.com/en-us/library/dd370810%28v=VS.85%29.aspx
Sample code is only in C# but you can use any of the many C# to VB.NET code conversion tools to figure it out.
I have found this amazing control that does exactly what I need, only problem, its in C#.
Does anyone know of a VB version of this code? I've tried using converters, but all of them have failed in successfully converting the project. Maybe one of you guys knows how to convert it?
Anyway, here is the control:
http://www.codeproject.com/KB/edit/FastColoredTextBox_.aspx
Apreciate any help!
Could you compile this into its own assembly and then reference it as a control? That way, you wouldn't have to port it to VB.net.
We have used Instant VB to convert tens of thousands of lines of code from C# to VB and they are pretty helpful if you run into conversion issues.
I'm making some snippets and i want to position the cursor. I've come acros "$end$" but all examples i see are in c#. Since recently i've started programming in vb.net again and it seems $end$ isn't recognized or doesn't work here. Is there another keyword in vb to do the same?
thanks in advance.
To the best of my knowledge, no. MSDN doesn't do the best job of documenting the meta-languages of snippets so reverse engineering tends to be the best way to figure things out. Looking through all of the VB snippets I can't find any usage of $selected$ or $end$. When I insert Microsoft-created snippets in VB I also can't press enter to go to the inside of my snippets like I can in C#.
If you install SharpDevelop, it has a translator that will convert C# code to VB.NET.
Just open a .cs file and then Tools->Convert to->VB.NET