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. Refresh forms

Refresh forms

Scheduled Pinned Locked Moved C#
questiondatabasehelp
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.
  • W Offline
    W Offline
    webhay
    wrote on last edited by
    #1

    Hello All, 1- I puted some controls on windows form and binded them to database. I need if i changed some thing on another forms to refresh the First forms. 2- How can i check if a form alreday running or not ? Please help Thanks Hay

    D 1 Reply Last reply
    0
    • W webhay

      Hello All, 1- I puted some controls on windows form and binded them to database. I need if i changed some thing on another forms to refresh the First forms. 2- How can i check if a form alreday running or not ? Please help Thanks Hay

      D Offline
      D Offline
      david cohoon
      wrote on last edited by
      #2

      Depending on whether the data on the second form is related to the data on the first form, you could pass the first form's binding context to the second form, so that both forms use the same binding context. I've done this when I had to display child data in a separate form. I just passed the binding context into the second form's constructor. There are several different ways to detect whether a form is already currently being shown. One way is to create your own ApplicationContext and have it create and destroy your forms. Another way is to simply create a static object that holds this information. Hope that helps

      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