Calling code from user controls

  • Thread starter Thread starter Rob Oldfield
  • Start date Start date
R

Rob Oldfield

Following on from the 'tab control functionality' thread, I've been having a
look at user controls (i.e. a quick run through the example in VS 2003).
That all seems to make sense but there's one thing that I don't see there:

If I have a button on that user control that basically says "this screen is
now done with", what is the best way to fire code from the main form that
can deal with the fact that that part of the process is now complete.
Presumably (I don't have the software available at present to check this) I
could declare a public sub in the main project and call that - but that
seems to defeat the object of user controls.

Any help gratefully received.
 
Back
Top