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. .NET (Core and Framework)
  4. How to refresh the child window dropdown

How to refresh the child window dropdown

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasetutorialquestion
2 Posts 2 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.
  • S Offline
    S Offline
    sandhya14
    wrote on last edited by
    #1

    Hi all, I have created a windows application,in that 1 MDI parent and 2 child forms are there....i have opend 2 child forms,now if i add anything in the first window textbox that should get updates in the second window's dropdown,bcz the value which i entered in the first window is get stored in the database,and the second window dropdown is populating form that table... This is not happening...how to do?... (2 windows are of child of the same parent window..) Thanks in advance...

    L 1 Reply Last reply
    0
    • S sandhya14

      Hi all, I have created a windows application,in that 1 MDI parent and 2 child forms are there....i have opend 2 child forms,now if i add anything in the first window textbox that should get updates in the second window's dropdown,bcz the value which i entered in the first window is get stored in the database,and the second window dropdown is populating form that table... This is not happening...how to do?... (2 windows are of child of the same parent window..) Thanks in advance...

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

      The simplest way is to create a method in form2 that refreshes the dropdown and call this method from form1 when text is entered in the text box. But and ideal solution would involve using delegates to achieve loose coupling. Hope this helps, Shameel

      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