TreeView Horizontal Scroll freezes device

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());
}
}
 
G

Guest

I tried that sample with emulator and a device with SP2 and didn't have any
problems. What device are you testing on and what SP do you have?
 
C

Chance Hopkins

I have an i700 and it does the same thing with both SP2 and SP3. I have a
clean image with SP2 and tried it before and after installing the SP3.

Honestly, I'm more releaved that it's my problem. I was concerned the
application I was designing was useless. Although I'd love to have it work
for me also.

Thanks for the reply.
 
C

Chance Hopkins

just some further info. I did a hard reset (I'm running the 2003 upgrade
btw) and installed ONLY the framework and my applicaton. I got it do the
same thing if I slide the bar back and forth about 10 times

Now obviously most people won't do that, but it does seem to be much more
noticable when I have a couple other things running. Maybe it's a ram issue?
 
D

Daniel Moth

Cannot replicate with your sample in the PPC emulator (CF RTM)
or on a PPC (SP1).

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top