usercontrol events/properties question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i have my control that i made, only have my properties and my events,
not the premade ones? i hope this makes sense...
 
Hi, I'm not an expert but I will give what I beleive to be a good
explanation,

You need to define the ones you want to Allow to run from your base class.

lets say it is a round button you have .

roundButton.click = mybase.click ( or Raise mybase.click) or something like
that.

This is what I understands of the thing I might be wrong .

Hope that help.
 
iwdu15 said:
how can i have my control that i made, only have my properties and
my events, not the premade ones? i hope this makes sense...


Inheritance means, you inherit everything (everything but constructors
because they define how the specific class instance can be created). The new
class "is made of" the base class + the new members.


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top