vb .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • msali36
    New Member
    • Sep 2007
    • 13

    vb .net

    hi,
    i just want to know how we can create label at run time
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    The same way the designer does it.
    Look at designer code to see how.

    For a quick example:
    Code:
    Label mylabel= new Label();
    mylabel.Name="mylabel";
    this.Controls.Add(mylabel);

    Comment

    • msali36
      New Member
      • Sep 2007
      • 13

      #3
      thanks for let me know...

      could you plz also guide me how we can represent the database table from database in the form of hirarcy in vb.net

      for example


      table records

      Parent Child
      ----------- A
      A

      Comment

      • msali36
        New Member
        • Sep 2007
        • 13

        #4
        thanks for let me know...

        could you plz also guide me how we can represent the database table from database in the form of hirarcy in vb.net

        for example


        table records

        Parent Child
        ----------- Root
        Root A
        Root B

        A A1
        A A2

        B B1
        B B2

        in Vb.net it should look like this


        Root
        / \
        / \
        A B
        / \ / \
        / \ / \
        A1 A2 B1 B2

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Try a treeview or something like that.

          Comment

          Working...