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..

C# mumbles and babbles on C++ forum ;)...

C# mumbles and babbles on C++ forum ;)...

This doesn't look like C# to me :-O

wellwell of cos i know what program am using and i need to use..I doing a project and i was told to use C# and those code work in C#..of cos if there is a easy how i wish i can use but i can't.. that why am here to ask for help..

>>wellwell of cos i know what program am using
Apparently not because you originally posted this in the C board, not C#.

I know next to nothing about C# -- the link I posted was for C++ since this thread was in the C++ board (where I moved it from the C board).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.