Click here to Skip to main content
16,007,472 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: A little help with my first visual basic program Pin
Christian Graus5-May-08 17:50
protectorChristian Graus5-May-08 17:50 
AnswerRe: A little help with my first visual basic program Pin
Dave Kreskowiak5-May-08 19:01
mveDave Kreskowiak5-May-08 19:01 
GeneralRe: A little help with my first visual basic program Pin
Guffa6-May-08 0:48
Guffa6-May-08 0:48 
GeneralRe: A little help with my first visual basic program Pin
winsane6-May-08 10:05
winsane6-May-08 10:05 
GeneralRe: A little help with my first visual basic program Pin
Guffa6-May-08 11:25
Guffa6-May-08 11:25 
GeneralRe: A little help with my first visual basic program Pin
ChandraRam6-May-08 1:12
ChandraRam6-May-08 1:12 
GeneralRe: A little help with my first visual basic program Pin
winsane6-May-08 9:56
winsane6-May-08 9:56 
AnswerRe: A little help with my first visual basic program Pin
Guffa6-May-08 1:00
Guffa6-May-08 1:00 
You can't just paste VB6 code in a VB.NET form and expect it to work. The code uses some constructs that doesn't exist in VB any more. VB went through a major change with version 7, becoming an object oriented language using the .NET framework. You are using VB 9 now.

You have to rewrite the code to VB.NET. Here are some pointers:

:: Don't use a structure, use a class.
:: VB.NET has a real Char type, you don't have to use a one character string.
:: Don't use "char" as a member name, as it's now a data type.
:: Declare all variables that you use, and specify a data type for them.

Regarding your error messages; most of the errors are results of the first five errors.

Despite everything, the person most likely to be fooling you next is yourself.

QuestionVBscript Mapping ALL network printers Pin
Jacob Dixon5-May-08 13:16
Jacob Dixon5-May-08 13:16 
AnswerRe: VBscript Mapping ALL network printers Pin
Dave Kreskowiak6-May-08 3:33
mveDave Kreskowiak6-May-08 3:33 
QuestionConversion Pin
Ekjon5-May-08 11:44
Ekjon5-May-08 11:44 
AnswerRe: Conversion Pin
Christian Graus5-May-08 11:53
protectorChristian Graus5-May-08 11:53 
GeneralRe: Conversion Pin
Ekjon5-May-08 12:21
Ekjon5-May-08 12:21 
QuestionHow to specify a byte literal? Pin
supercat95-May-08 10:43
supercat95-May-08 10:43 
AnswerRe: How to specify a byte literal? Pin
Dave Kreskowiak5-May-08 11:09
mveDave Kreskowiak5-May-08 11:09 
GeneralRe: How to specify a byte literal? Pin
supercat95-May-08 18:08
supercat95-May-08 18:08 
GeneralRe: How to specify a byte literal? Pin
Dave Kreskowiak5-May-08 18:49
mveDave Kreskowiak5-May-08 18:49 
QuestionFiletype Registration Pin
Zaegra5-May-08 10:16
Zaegra5-May-08 10:16 
AnswerRe: Filetype Registration Pin
Kschuler5-May-08 10:34
Kschuler5-May-08 10:34 
QuestionVB.NET Handheld PDA - Input box not displaying text Pin
Arsene Cormier5-May-08 9:35
Arsene Cormier5-May-08 9:35 
AnswerRe: VB.NET Handheld PDA - Input box not displaying text Pin
Dave Kreskowiak5-May-08 9:41
mveDave Kreskowiak5-May-08 9:41 
QuestionSerialized Text Stream Problem Pin
Lee_morin5-May-08 9:02
Lee_morin5-May-08 9:02 
AnswerRe: Serialized Text Stream Problem Pin
Dave Kreskowiak5-May-08 9:39
mveDave Kreskowiak5-May-08 9:39 
QuestionVb Tanslator Project Help Pin
darthbane135-May-08 7:21
darthbane135-May-08 7:21 
AnswerRe: Vb Tanslator Project Help Pin
Christian Graus5-May-08 11:54
protectorChristian Graus5-May-08 11:54 

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.