C
Chance Hopkins
Does anyone have a problem with their device freezing when using the
TreeView and scrolling horizontally?
(I have the latest SP, thanks)
I have a treeview that after I fill it with data, if I scroll to the right
it freezes the entire device, EVERYTIME. Not just on occasion.
I already tried removing it and re-adding the tree view, it doesn't help.
This code creates the problem for me (pretty simple):
---------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.MainMenu mainMenu1;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.treeView1 = new System.Windows.Forms.TreeView();
this.treeView1.ImageIndex = -1;
this.treeView1.Location = new System.Drawing.Point(24, 24);
this.treeView1.SelectedImageIndex = -1;
this.Controls.Add(this.treeView1);
this.Text = "Form1";
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad (e);
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
}
static void Main()
{
Application.Run(new Form1());
}
}
TreeView and scrolling horizontally?
(I have the latest SP, thanks)
I have a treeview that after I fill it with data, if I scroll to the right
it freezes the entire device, EVERYTIME. Not just on occasion.
I already tried removing it and re-adding the tree view, it doesn't help.
This code creates the problem for me (pretty simple):
---------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.MainMenu mainMenu1;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.treeView1 = new System.Windows.Forms.TreeView();
this.treeView1.ImageIndex = -1;
this.treeView1.Location = new System.Drawing.Point(24, 24);
this.treeView1.SelectedImageIndex = -1;
this.Controls.Add(this.treeView1);
this.Text = "Form1";
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad (e);
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
this.treeView1.Nodes.Add("this is some text to fill the view and make it
scroll to the right");
}
static void Main()
{
Application.Run(new Form1());
}
}