Click here to Skip to main content
15,921,250 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ShellExecute Pin
Dave Kreskowiak29-Nov-04 3:04
mveDave Kreskowiak29-Nov-04 3:04 
GeneralSplash Form Pin
Brendan Vogt28-Nov-04 19:13
Brendan Vogt28-Nov-04 19:13 
GeneralRe: Splash Form Pin
playout28-Nov-04 21:46
playout28-Nov-04 21:46 
GeneralRe: Splash Form Pin
Brendan Vogt28-Nov-04 22:06
Brendan Vogt28-Nov-04 22:06 
GeneralRe: Splash Form Pin
Gavin Jeffrey30-Nov-04 3:37
Gavin Jeffrey30-Nov-04 3:37 
GeneralLoading of Forms Pin
Brendan Vogt28-Nov-04 19:11
Brendan Vogt28-Nov-04 19:11 
GeneralRe: Loading of Forms Pin
Dave Kreskowiak29-Nov-04 1:33
mveDave Kreskowiak29-Nov-04 1:33 
GeneralBarocde Scanner Communication Pin
AkAdescentIvy28-Nov-04 18:40
AkAdescentIvy28-Nov-04 18:40 
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...) WTF | :WTF: The first program is in VB6, reads in the barcode scanner data great. (source code can be found at www.freevbcode.com/ShowCode.asp?ID=2408)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. Unsure | :~ And is there a simple code to do the above compare function.Confused | :confused:

GeneralColumn Name Pin
nitin_ion28-Nov-04 17:13
nitin_ion28-Nov-04 17:13 
GeneralOffice Addins Powerpoint Saveas dialog Pin
shinay28-Nov-04 10:35
shinay28-Nov-04 10:35 
GeneralI Need a help in MP3 Pin
The_Debugger28-Nov-04 7:31
The_Debugger28-Nov-04 7:31 
GeneralMDI applications that can act like SDI Pin
ddd0127-Nov-04 17:10
ddd0127-Nov-04 17:10 
GeneralRe: MDI applications that can act like SDI Pin
Dave Kreskowiak28-Nov-04 17:26
mveDave Kreskowiak28-Nov-04 17:26 
GeneralRun a file in the proper application Pin
Reedmon2927-Nov-04 4:27
Reedmon2927-Nov-04 4:27 
GeneralRe: Run a file in the proper application Pin
Dennis C. Dietrich27-Nov-04 5:47
Dennis C. Dietrich27-Nov-04 5:47 
Generalnetwork Pin
fatidarya26-Nov-04 19:19
fatidarya26-Nov-04 19:19 
GeneralRe: network Pin
Dave Kreskowiak27-Nov-04 11:22
mveDave Kreskowiak27-Nov-04 11:22 
GeneralRe: network Pin
fatidarya28-Nov-04 9:55
fatidarya28-Nov-04 9:55 
GeneralRe: network Pin
Dave Kreskowiak28-Nov-04 17:23
mveDave Kreskowiak28-Nov-04 17:23 
GeneralImage Control Problem Pin
Anonymous26-Nov-04 16:27
Anonymous26-Nov-04 16:27 
GeneralRe: Image Control Problem Pin
Dave Kreskowiak29-Nov-04 2:56
mveDave Kreskowiak29-Nov-04 2:56 
Generalmultiple Forms Pin
quhaip8826-Nov-04 14:02
quhaip8826-Nov-04 14:02 
GeneralRe: multiple Forms Pin
Dennis C. Dietrich26-Nov-04 14:55
Dennis C. Dietrich26-Nov-04 14:55 
GeneralRe: multiple Forms Pin
quhaip8826-Nov-04 17:02
quhaip8826-Nov-04 17:02 
GeneralVery large file problem Pin
Bloomers26-Nov-04 12:18
Bloomers26-Nov-04 12:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.