component question

G

Guest

Could someone give me a code sample on how to make this component?

I bascially want to inherit from a numericUpDown control. I want to add two
properties to this. One is a integer property and the other would be a
collection of integers. I know how to add the integer property....could
someone show me the code for a collection?


Basically my goal is to make a numericUpDown component that when someone
clicks on a listbox to lets say entry 4....I can tell the numericUpDown
control that we should put the 4th integer from the collection into the Value
propert.
 
P

Peter Duniho

ashlar64 said:
Could someone give me a code sample on how to make this component?

I bascially want to inherit from a numericUpDown control. I want to add two
properties to this. One is a integer property and the other would be a
collection of integers. I know how to add the integer property....could
someone show me the code for a collection?


If you already know how to add an integer property, what exactly are you
having trouble with, with respect to the collection? It should be the
same, except that the property has the collection type instead of an
integer type.

Pete
 

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

Top