troubleshooting Question

Windows form designer code error ?

Avatar of pillmill
pillmill asked on
.NET ProgrammingVisual Basic.NETEditors IDEs
4 Comments1 Solution185 ViewsLast Modified:
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 ?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros