Prev: STUMPED! VB6 app on Win7 64 system, how do IF statements work when they contain AND?
Next: need socket ocx recommendation
From: David on 25 Feb 2010 12:54 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 25 Feb 2010 13:47 "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 25 Feb 2010 16:09 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 25 Feb 2010 16:29 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 25 Feb 2010 17:13
"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. |