.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Loading a treeview

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
968 Views, 4 Replies

Loading a treeview

Hi i got a very simple tree view i did for testing here.. can anybody teach me how to load this tree view into AutoCAD interface? thanks.

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
treeView1.Nodes.Add("Root","Testing1");
}

private void button2_Click(object sender, EventArgs e)
{
treeView1.Nodes["Root"].Nodes.Add("test", "one");
}

private void button3_Click(object sender, EventArgs e)
{
treeView1.Nodes.Add("test", "Testing2");
}

private void button4_Click(object sender, EventArgs e)
{
treeView1.Nodes["test"].Nodes.Add("test2", "two");
}
}
}
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

You have to learn how to build AutoCAD extensions in order to do that.

The API samples and the online docs have examples that show how to use a
windows form from within an AutoCAD extension, and how to build an AutoCAD
extension.

This is not an online classroom.

Download the API samples and consult the online documentation for learning
the basics of building an AutoCAD extension, and using Windows Forms and
controls with them.

It's all there, and no one here has the time to feed it to you with a spoon.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6294276@discussion.autodesk.com...
Hi i got a very simple tree view i did for testing here.. can anybody teach
me how to load this tree view into AutoCAD interface? thanks.

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void treeView1_AfterSelect(object sender, TreeViewEventArgs
e)
{

}

private void button1_Click(object sender, EventArgs e)
{
treeView1.Nodes.Add("Root","Testing1");
}

private void button2_Click(object sender, EventArgs e)
{
treeView1.Nodes["Root"].Nodes.Add("test", "one");
}

private void button3_Click(object sender, EventArgs e)
{
treeView1.Nodes.Add("test", "Testing2");
}

private void button4_Click(object sender, EventArgs e)
{
treeView1.Nodes["test"].Nodes.Add("test2", "two");
}
}
}
Message 3 of 5
Anonymous
in reply to: Anonymous

i am just asking because i don't know.. i didn't mean anyone to spoon feed me.. i didn't want to get some direct coding or something like that. i was just hoping someone can guide me how.. telling me where can i learn all these.. make me understand.. do you think i wasn't trying to learn?? or learn from autodesk help?? if you don't want to teach or guide me just don't reply my post.
Message 4 of 5
Anonymous
in reply to: Anonymous

{quote}

i was just hoping someone can guide me how.. telling me where can i learn
all these

{quote}

You were already told that.

You were told to download the API docs and the training materials, but
instead of doing that (which show how to what you are asking this group to
show you how to do), you instead just blew that off, and you are back here
looking for someone to hold your hand.

Who do you think you are kidding ?

The training material at the link below shows how to load a windows form
into AutoCAD. The form can have any controls you care to place on it,
including a treeview:

http://images.autodesk.com/adsk/files/autocad_2010_dotnet_training.zip

Download it and spend the time needed to figure out what you have to do, and
stop asking us to do your homework for you.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
Message 5 of 5
Anonymous
in reply to: Anonymous

yaya anything u want to think.. i am not a english speaker.. u speak your way and think what u want i just have the different meaning.. and i don't understand what you mean..

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost