title: Visual Basic 6 VB Overriding a Function
body: <p>I recently started using vb6 to make a simple exe and I can't figure out how to get "Overrides" to work. </p>
  
  <pre><code>Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
  
  End Function
  </code></pre>
  
  <p>This gives me a "expected: end of statement" error and it highlights "Function". It is typed exactly how I've been seeing it in examples so I'm not sure what is wrong. I am typing this into my Form1 class. Any help would be appreciated!</p>