Creating objects at Runtime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cmdolcet69

    #1

    Creating objects at Runtime

    How can I create a dropdown box at runtime? I want my dropdown box to
    appear when my user enters the program and the it would load the save
    data from an xml file. How can i do this?

  • cfps.Christian

    #2
    Re: Creating objects at Runtime

    On Nov 1, 9:38 am, cmdolcet69 <colin_dolce... @hotmail.comwro te:
    How can I create a dropdown box at runtime? I want my dropdown box to
    appear when my user enters the program and the it would load the save
    data from an xml file. How can i do this?
    if you know where you want the drop down and what is going to be in it
    I would make its ddl.Visible = false and make it = true when you are
    ready for it.

    If you MUST dynamically place the drop down then you will: (assuming
    this is not ASP.NET in which case you would use DropDownList)
    dim cbo as new System.Windows. Forms.ComboBox
    'Add items to combo
    cbo.Location = new Point([x], [y])
    cbo.Name = cboName
    Me.Controls.Add (cbo)

    Comment

    Working...