1,857 Posted Topics

Member Avatar for unknownprogress

You've created 2 'MealCalc' variables. Remove the one on line 12 and you should see a difference.

Member Avatar for unknownprogress
0
131
Member Avatar for M_UMAR

You're assigning the same value to Operand2 as to Operand1. Try this instead: Operand2=Val(TextBox1.Lines(1))

Member Avatar for M_UMAR
0
237
Member Avatar for joshl_1995

I think what you are looking for is to read the My.Application.CommandLineArgs during the Form Load event.

Member Avatar for joshl_1995
0
497
Member Avatar for albert.staszak

It appears to me that if Form2 is already designed that you won't need to Dim a new one just show the one you have.

Member Avatar for Jx_Man
0
104
Member Avatar for laney.sinclair.5

Most wysiwyg editors that I've seen include an option to view the source code. Perhaps enabling this view then inputting your code, will work.

Member Avatar for tinstaafl
0
147
Member Avatar for kenomote
Member Avatar for chamnab

Just from a glance it looks like you're not referencing your collection right, try changing b.Add(user) to bb.Add(user) and a.Add(user) to aa.Add(user) You might want to think about making option explicit it'll catch errors like this.

Member Avatar for chamnab
0
189

The End.