Barcode Scanner and RS232 commmunication

I have two separate programs that worked just fine one is in VB6 the other is in VB.Net. I get error when I tried to upgrade VB6 to VB.Net. ( Got an error message about MSCOMMX etc...)  The first program is in VB6, reads in the barcode scanner data great. (source code can be found at and the Second part of the code copy to the clipboard (VB.Net).
 Public Class frmMain
    Inherits System.Windows.Forms.Form

    Private Sub btnCopy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCopy.Click
        'This will add the text in the textbox to the clipboard. With
        'the value set to false it will clear the clipboard of the data
        'added by this program when the program exits.

        Clipboard.SetDataObject(txtSource.Text, False)
    End Sub

    Private Sub btnPaste_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPaste.Click
        'We want the data to be in a text format to add in our textbox

        txtDest.Text = Clipboard.GetDataObject.GetData(DataFormats.Text, True)
    End Sub

    Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub txtSource_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSource.TextChanged

    End Sub
End Class

I want to compare the serial data that comes in from the first program to a list of other data. For example: if the serial data is YES, it will compare "YES", "NO", OR "MAYBE" will be the three choices.  When yes is true, then it would print out a phrase, Ex: "You are correct". Then copy to the clipboard "You are correct"
So, my questions are is there a way I can convert VB6 to VB.Net, or VB.Net to Vb6. And is there a simple code to do the above compare function.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob LearnedCommented:
There are simple serial communications solutions for .NET:  

Sax.NET community version in Visual Basic.NET Resource Kit:

You can't convert VB.NET back to VB6 automatically, you would need to convert that code manually.  But copying to the clipboard in VB6 is trivial.

2InVY59Author Commented:
Thank you. But I am still confused on how to write the compare function in Vb6 or Vb.Net.
check out String.Compare
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.