Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Clone Windows Forms Information

Clone Windows Forms Information

Scheduled Pinned Locked Moved C#
questiondatabasewinforms
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Illegal Operation
    wrote on last edited by
    #1

    Hi! I have a question. I have two forms, Form1 and Form2. I add two textboxes to form1 and the same with form2 I fill in the textboxes on form1 and save the information to sql templatetable1. I need to display a list of entries from form1 in a dropdonwlist and when the user selects an entry, form2 needs to be populated by the selected template. How can I do this?

    Illegal Operation

    A L 2 Replies Last reply
    0
    • I Illegal Operation

      Hi! I have a question. I have two forms, Form1 and Form2. I add two textboxes to form1 and the same with form2 I fill in the textboxes on form1 and save the information to sql templatetable1. I need to display a list of entries from form1 in a dropdonwlist and when the user selects an entry, form2 needs to be populated by the selected template. How can I do this?

      Illegal Operation

      A Offline
      A Offline
      Anshul R
      wrote on last edited by
      #2

      Assign the control to a new control in form2

      1 Reply Last reply
      0
      • I Illegal Operation

        Hi! I have a question. I have two forms, Form1 and Form2. I add two textboxes to form1 and the same with form2 I fill in the textboxes on form1 and save the information to sql templatetable1. I need to display a list of entries from form1 in a dropdonwlist and when the user selects an entry, form2 needs to be populated by the selected template. How can I do this?

        Illegal Operation

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        There are many methods you can achieve this. 1. You can use delegates to make communication between the forms. 2. You can pass form object as an argument to another form and then use that object to achieve the behavior. 3. You can pre-define object of one form into another form and then by assigning the instance you can make communication possible between the forms. Find following links useful... Passing Data between Windows Forms[^] Pass Data Between the Forms without Events and Delegates[^] Using Delegates to communicate between the Forms[^] HTH

        Jinal Desai - LIVE Experience is mother of sage....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups