Override method with member

  • Thread starter Thread starter John Bailo
  • Start date Start date
J

John Bailo

I want to name a variable in a form Move.

But Move() is a method, (Control.Move) that the form inherits.

Can I override a method and have a variable with the same name that I
can access publically?
 
Tim said:
What happened when you tried it?

Well, I couldn't figure out how.

I set a reference to a child form:

frmMove Move = new frmMove(parentForm);


Then when I tried to reference parentForm.Move in the Dispose() method,
it only referred to the Control.Move() method. So, I was wondering if
I could override the Control.Move() method so I could access the .Move
member.
 
Back
Top