Is there a VB.NET version of this code? - vb.net

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.

Related

What is the VB.net equivalent to VB6 MSComm.CommPort?

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/

Using Eazfuscator but code can still be read from the assemblies?

I am trying to protect my dll from disassemblers.
I am using "Eazfuscator.NET Assistant" as dll encryption tool. but after that the Reflector still can read the source code. is it anything i need to do before using Eazfuscator or after? or can anybody can introduce me a free encryption tools which it is can help me to encrypt my source code?
Thank you very much.
You can consider .Net Reactor it works for me.
You can try code obfuscators. Also you can try to pack your dll with software like UPX. Although it could be disassembled it will be much harder do understand what's going on in the assembly.
There are some more techniques like:
Adding garbage code, which can confuse anyone reading disassembly.
Adding breakpoint detection code.
Adding self modifying code.
Doing PEB structure checks.

Is there an $end$ version in vb.net for snippets?

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

compiling VB6 code in .NET environment

Is one able to compile VB 6 code in Visual Studio.NET ? In other words, is it backwards compatible with older VB code?
Since I know there is a difference between managed code (.NET) and unmanaged code, I am wondering if Visual Studio.NET is able to compile unmanaged code as well?
Kind regards,
Kris
While you cannot compile vb6 in the .net Visual Studios, you may use interop libraries to allow vb.6 to utilize managed code
http://msdn.microsoft.com/en-us/library/kew41ycz%28VS.71%29.aspx
No, you can't compile VB6 code in any VS.NET version.
You can open a VB6 .vbp project file in Visual Studio. This automatically invokes the project converter, it will try to translate your VB6 code into VB.NET. The translator does a fairly decent job of it but the VB.NET language has changed pretty drastically. It depends on how 'clean' your VB6 code was.
After the conversion is completed, you'll have to walk through the list of warnings and errors you'll get. Getting none at all is rare. There might be hundreds or thousands. If you're in that boat, it starts making sense to rewrite the code.
Anyhoo, just try and see what hits the fan. You'll have a good idea what you're in for in about ten minutes. Don't forget to copy the project before you start the conversion.
No it is not compatible. I think there is an upgrade wizard, but you will end up fixing some stuff manually.

Need to convert C# to VB.NET

I have some C# source code that I got off the Internet and I want it in VB.NET. How would you convert it because I don't know C#.
I found multiple translators after performing a simple search, but this one looks kind of cool. No installation necessary!... though I have never used it.
Another way is compiling it to, dragging the assembly to Reflector and then decompiling it to VB.NET
If I recall correctly, you can have multiple source languages in the same project. They just have to be in different files. You should be able to call the c# class from a vb.net class without any major problems. This may not be the prettiest option, but it might work for your situation.
You can have a VB project in the same solution as a C# project, and use classes from either from the other, but you can't have both VB and C# source files compiled in the same project.