How to display same button(button1) in two different forms(form1 and form2)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prathap
    New Member
    • Nov 2011
    • 37

    How to display same button(button1) in two different forms(form1 and form2)?

    Suppose, i have a button(button1) in form1.
    Now i have opened a new form.
    I want to display the same button(button1) from form1 to form2.
    Please help..
    Thanks in advance
  • nirgunpratik
    New Member
    • Dec 2011
    • 4

    #2
    u have button1 in form1....

    when you load form2 without, load it in such a way...

    dim frm as form2
    frm=new form2()
    frm.Controls.Ad d(Me.button1)
    frm.Show()

    tell me if it solves your problem....

    Comment

    • Prathap
      New Member
      • Nov 2011
      • 37

      #3
      As a newbie in vb.net it was very helpful for me.Thanks nirgunpratik
      Thanks for your concern.

      Comment

      Working...