|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is there a method to determine if the mouse position is inside the bounds of a treeview node?I need to know when the mouse is over the text of a TreeView node.
I know how to get the Bounds of the node which appear to be the correct values to delineate the text. I could check the mouse position against those values but I'm guessing there is a method to determine if the position is inside the bounds. If that is correct I appreciate a reference to the method so I can find it in the docs. Thanks I found "Contains" on Rectangle
Show quoteHide quote " **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message news:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl... >I need to know when the mouse is over the text of a TreeView node. > > I know how to get the Bounds of the node which appear to be the correct > values to delineate the text. > > I could check the mouse position against those values but I'm guessing > there is a method to determine if the position is inside the bounds. > > If that is correct I appreciate a reference to the method so I can find it > in the docs. > > > Thanks > " **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message How aboutnews:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl... > I need to know when the mouse is over the text of a TreeView node. [TreeView].GetNodeAt( X, Y ) ?? HTH, Phill W. Thanks
Show quoteHide quote "Phill W." <p-.a-.w-a-r-d@o-p-e-n.a-c.u-k> wrote in message news:dssu08$epc$1@yarrow.open.ac.uk... >" **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message >news:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl... >> I need to know when the mouse is over the text of a TreeView node. > > How about > > [TreeView].GetNodeAt( X, Y ) > > ?? > > HTH, > Phill W. > >
Changing a richtextbox's colour!
Vanishing Declarations Q: Message Box graphics Conversion question Creating a Custom Data Source that implements IList or IListSource .NET PDF toolkit that can compress images in PDF files..? sort treeview what is the meaning of this error message? Testing VB.net application -reg VS2005 Standard vs. VS2003.Net Academic |
|||||||||||||||||||||||