SubClassing Subform

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

Guest

Hi,

Does anyone know if it's possible to subclass a subform and display
different images on a continuous form ?
 
Technically yes.

Some issues:

1) While you can certainly subclass a Form, there is a bug in A2K or
higher that will force you to place your subclassing code within an
external DLL.

2) The simplest and ultimately the most accurate route would be to
subclass the ScrollBar window of the Form.

I am in the middle of producing a subclassing solution for the ScrollBar
of an Access Form to produce an extended Conditional Formatting solution
for A2K and higher. Basically, in reponse to when Access sets the
ScrollBarInfo structure, I copy Bitmap data onto the forms PictureData
property to simulate Conditional Formatting. Yo could do the same thing
but substitute your Image's Bitmap data instead.

So it is certainly possible and will most likely be the next project I
take up when this current CF solution is finished.



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thank you, I wanted to use an unbound image control and change the picture
depending on conditions.

Thank you much for your time and your dedication to helping folks
everywhere.
 
Back
Top