i have a treeview in winforms . When i double click on treenode ,its childnode gets disappear .Again when i click on that very node its child nodes gets expand. Any body please help me out.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to disable double click alltogether you will have handle directly the
WM_LBUTTONDBLCLK(0x0203). To do that create aMyTreeViewcontrol inheriting fromSystem.Windows.Forms.TreeViewand override theWndProc(ref Message m)method.This solution will disable completely double clicks on all the
TreeViewcontrol. If you can live with that, this solution will do.