I want to have a base form where I define a button (btnExit) through the code and the base form contains an event handler to execute me.close
I have the base form created. I can create the button through code and I used the
Public WithEvents BtnExit as system.windows.forms.button
I created a sub with me.close that has the 'handles BtnExit.Click' statement.
But... when I 'run' a child form, I can see the Exit button but clicking it doesn't do anything.
Can anyone help me. What do I have to do to get the child form to use the sub from the base form that should execute the me.close statement?
I have the base form created. I can create the button through code and I used the
Public WithEvents BtnExit as system.windows.forms.button
I created a sub with me.close that has the 'handles BtnExit.Click' statement.
But... when I 'run' a child form, I can see the Exit button but clicking it doesn't do anything.
Can anyone help me. What do I have to do to get the child form to use the sub from the base form that should execute the me.close statement?