Tree Double Click Event

Friday, July 24, 2009

1 Dran and Drop TreeView on YOur form
2 Selcet Treevrew and rightclick and go to Properties
3 Click the Event Icon on Top Properties Window
4 Double Click ON DoubleClick Event
5 Use With if check with your Condition
---- Now add Tree View Programmictlly and Register its Double Click Event
1 Add button contorl on your form
2 Add Panal Control
3 double click on button control and Right Code blow in your button Click Event
4

TreeView tr = new TreeView();
tr.Nodes.Add("Hello");
tr.Nodes.Add("Hello");
tr.Nodes.Add("Hello");
tr.Location = new Point(20, 10);
this.panel1.Controls.Add(tr);
tr.Visible = true;j

5 Register Treeview DoubleClick Event to Delates
tr.DoubleClick += new EventHandler(tr_DoubleClick);

6 add this Function to your Form Class


void tr_DoubleClick(object sender, EventArgs e)
{
MessageBox.Show("I am new Double Click");
}


Or AnyThing Else Just Contcat me
thank you
usama wahab khan
Download Now

share this post
Share to Facebook Share to Twitter Share to Google+ Share to Stumble Upon Share to Evernote Share to Blogger Share to Email Share to Yahoo Messenger More...

0 comments: