[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.vb.general.discussion

Subclassing Puzzlement Update

BeeJ

11/15/2011 8:09:00 PM

I started working on my UC again.

Stepped through the code for working and non-working subclassing.
All has identical code but returns different results.

Deleted the UC from the form and redrew it.
Still subclassing would not work.

Saw in the UC properties on the form that I had a few Property Lets
that really are read only so I commented the Lets out.

Then I went into a UC subroutine to look at the Drag Mouse situation
and added two Debug.Print lines to see if I could accurately determine
the cursor position within the cell.

Guess what! I started the app to watch the debug.print results and the
subclassing is WORKING!!! Mouse Scroll performs etc.

I am now holding my breath.

The Property Lets were not referenced anywhere.
I changed no code lines other than the two Debug.Print
This problem occurs on two different laptops.
Oh yes, I did flip the UC (on the form) AllowDrag property (my code)
from False to True. That did do a property bag change (Ambient I
think?).
WinMerge shows identical code in the UC between the working and
non-working (before the added Debug.Print).

!!!Stumped!!!
Solution: add random code to a non-working app and magically it will
start working. lol

Any ideas?
Sure would like to know what I did.