Question

Start 16 ml.vb* + X Form1.vb [Design)* KENERGY Button1 bic class Form1 EnabledChanged EPrivate Sub CalculateBtn_Click(sender

I am trying to build a program in Visual Basic that allows user to enter an objects mass and velocity and to display the Kinetic energy. The application should have a function KineticEnergy that accepts a moving objects mass and velocity as arguments. The function should return the objects KE.

i get these three errors when trying to run the program I need help how would I fix this so it runs successfully? Thanks in advance!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

You did not supply a WithEvents variable in your Handles clause. The Handles keyword at the end of a procedure declaration causes it to handle events raised by an object variable declared using the WithEvents keyword.

//note if i can see the code i can make modifications in it

for more details you can go through this link

https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/error-messages/handles-clause-requires-a-withevents-variable-defined

if you cant get it comment the code i will modify it.

dont down vote please

Add a comment
Know the answer?
Add Answer to:
I am trying to build a program in Visual Basic that allows user to enter an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help with this problem in Visual Basic 2012: Write a program that allows the...

    I need help with this problem in Visual Basic 2012: Write a program that allows the user to specify two numbers and then adds, subtracts, multiplies, or divides them when the user clicks on the appropriate button. The output should give the type of arithmetic performed and the result. Whenever one of the numbers in an input text box is changed, the output text box should be cleared. Also, if the number 0 is entered into the second text box,...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT