Crazy D @ Work
January 7th, 2000, 07:06 AM
Hi,
I have a little problem with subclassing.
I have a usercontrol, one of the control is a resize control (that the form cant be resized smaller then specified size). This works perfect.
Now I want to add subclassing to another control in the ocx. This has a few buttons, and I want to catch the function-keys (since the shortkeys for those buttons are the function-keys), but for some reason, when I use the same code I use for the resize subclass, VB crashes as soon as the "Hook" function is called. No matter what I try, it keeps crashing.
Any idea what I can be overlooking?
I've subclassed a LOT of times, and it always works... is it just a bad subclassing day or what?? (*LOL*)
Crazy D @ Work :-)
I have a little problem with subclassing.
I have a usercontrol, one of the control is a resize control (that the form cant be resized smaller then specified size). This works perfect.
Now I want to add subclassing to another control in the ocx. This has a few buttons, and I want to catch the function-keys (since the shortkeys for those buttons are the function-keys), but for some reason, when I use the same code I use for the resize subclass, VB crashes as soon as the "Hook" function is called. No matter what I try, it keeps crashing.
Any idea what I can be overlooking?
I've subclassed a LOT of times, and it always works... is it just a bad subclassing day or what?? (*LOL*)
Crazy D @ Work :-)