I think you may need to use a combination of the two techniques. When I try the SetStyle method, it prevents the user from tabbing to the control but if I click on it I can then use the mouse to move through its nodes. So perhaps you can do that to prevent tabbing onto the control and then use WndProc to ignore keyboard events.
To set the style, add this constructor to your derived class:
Public Sub New()
MyBase.New()
Me.SetStyle(ControlStyles.Selectable, False)
Me.UpdateStyles()
End Sub
Rod
[email protected]
Check out my book:
"Expert One-on-One Visual Basic 2005 Design and Development"
http://www.vb-helper.com/one_on_one.htm
Sign up for the free
VB Helper Newsletters at
http://www.vb-helper.com/newsletter.html