From: David on
In this case a picturebox?

Currently I use a structure which tracks each picturebox
and holds the variables I need.

However, if it is possible to add a property to the MS Picturebox object,
this structure could be eliminated.


From: MikeD on


"David" <NoWhere(a)earthlink.net> wrote in message
news:OeRQYOktKHA.5940(a)TK2MSFTNGP02.phx.gbl...
> In this case a picturebox?
>
> Currently I use a structure which tracks each picturebox
> and holds the variables I need.
>
> However, if it is possible to add a property to the MS Picturebox object,
> this structure could be eliminated.


No direct way. However, you can put a PictureBox in your own UserControl to
which you add whatever properties, methods, and even events you'd like.

--
Mike


From: David on
Thanks MikeD.

I'm pretty sure (??) you can add a property to a form -- have to try and dig
up and old article if of interest (believe McKinney) -- but wasn't sure
about any other MS control.

David.


"MikeD" <nobody(a)nowhere.edu> wrote in message
news:%23WrrwrktKHA.4860(a)TK2MSFTNGP05.phx.gbl...
>
>
> "David" <NoWhere(a)earthlink.net> wrote in message
> news:OeRQYOktKHA.5940(a)TK2MSFTNGP02.phx.gbl...
>> In this case a picturebox?
>>
>> Currently I use a structure which tracks each picturebox
>> and holds the variables I need.
>>
>> However, if it is possible to add a property to the MS Picturebox object,
>> this structure could be eliminated.
>
>
> No direct way. However, you can put a PictureBox in your own UserControl
> to which you add whatever properties, methods, and even events you'd like.
>
> --
> Mike
>
>


From: Eduardo on
David escribi�:
> Thanks MikeD.
>
> I'm pretty sure (??) you can add a property to a form -- have to try and dig
> up and old article if of interest (believe McKinney) -- but wasn't sure
> about any other MS control.

You can add a property to a form because it has a code module. But
controls don't have a code module.
From: Helmut Meukel on

"MikeD" <nobody(a)nowhere.edu> schrieb im Newsbeitrag
news:%23WrrwrktKHA.4860(a)TK2MSFTNGP05.phx.gbl...
>
> "David" <NoWhere(a)earthlink.net> wrote in message
> news:OeRQYOktKHA.5940(a)TK2MSFTNGP02.phx.gbl...
>> In this case a picturebox?
>>
>> Currently I use a structure which tracks each picturebox
>> and holds the variables I need.
>>
>> However, if it is possible to add a property to the MS Picturebox object,
>> this structure could be eliminated.
>
>
> No direct way. However, you can put a PictureBox in your own UserControl to
> which you add whatever properties, methods, and even events you'd like.
>
> --
> Mike
>

How about using an otherwise unused poperty?
Do you already use the Tag property?
Does your program use DDE? If not, you could
probably misuse the properties LinkItem and
LinkTopic for your purposes. (not tested).

Helmut.