i already create two button at the runtime already but i don't know how to create the arrow pointing to the children.. n when i click at the children other button create again is just like a family tree..anyone one pls reply asap thax alot people out there=)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Button myText = new Button();
myText.Location = new Point(100, 100);
myText.Text = "Children";
this.Controls.Add(myText);
Graphics surface = this.CreateGraphics();
Pen penblue = new Pen(Color.Blue, 1.0f);
surface.DrawLine(penblue, 90, 50, 100, 100);
byte[] serialData = new byte[6];//Declare NO. of byte
//Scan network for other nodes
serialData[0] = 0x41;//A
serialData[1] = 0x54;//T
serialData[2] = 0x2B;//+
serialData[3] = 0x53;//S
serialData[4] = 0x4E;//N
serialData[5] = 0x0D;//Enter
Button myText1 = new Button();
myText1.Location = new Point(500, 100);
myText1.Text = "Children";
this.Controls.Add(myText1);
Button myText2 = new Button();
myText2.Location = new Point(500, 100);
myText2.Text = "Children";
this.Controls.Add(myText2);
}
private void timer1_Tick(object sender, EventArgs e)
{
}
}
}
i already create two button at the runtime already but i don't know how to create the arrow pointing to the children.. n when i click at the children other button create again is just like a family tree..