Windows form designer code error ?

The following code was added to my VB6 conversion.

It states: 'NOTE: The following procedure is required by the Windows Form Designer
      'It can be modified using the Windows Form Designer.
      'Do not modify it using the code editor.'

However, this code itself gives a build error in VB.NET 2005.
If I try and change the code, it refuses to process any edits to the code
that produces the error. The line in error is:

Me.AcceptButton = Me.CommandOK

The error is - the Me.AcceptButton not defined in the project.

How do I fix this ?

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.

Jorge PaulinoIT Pro/DeveloperCommented:
Me.AcceptButton = Me.CommandOK is Ok.

Do you really have CommandOK created?

Are building an normal windows form ?
pillmillAuthor Commented:
There is no CommandOK.

Why can't I remove it from the autogenerated code ?

Jorge PaulinoIT Pro/DeveloperCommented:
You can ...

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
pillmillAuthor Commented:
Thanks, I can without warning in .NET 2005.
The upgrade converter seems to create button definitions
from the click events and button properties in the VB6 code.

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
.NET Programming

From novice to tech pro — start learning today.