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. Form2 disappears when updating Form1

Form2 disappears when updating Form1

Scheduled Pinned Locked Moved C#
questionhelp
4 Posts 4 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.
  • N Offline
    N Offline
    NewToAspDotNet
    wrote on last edited by
    #1

    Hi All, I have to forms. In my seconde form i have a button that updates the first form. The problem is that when i click that button, the first form get updated , bud the second form desappears, then i have to click bring it back from the windows taskbar. How can i prevent that? i want that the second form remains active. Thanx.

    M N N 3 Replies Last reply
    0
    • N NewToAspDotNet

      Hi All, I have to forms. In my seconde form i have a button that updates the first form. The problem is that when i click that button, the first form get updated , bud the second form desappears, then i have to click bring it back from the windows taskbar. How can i prevent that? i want that the second form remains active. Thanx.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      try searching the site "Update parent form" turned up this article which may be of use. clickety[^]

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • N NewToAspDotNet

        Hi All, I have to forms. In my seconde form i have a button that updates the first form. The problem is that when i click that button, the first form get updated , bud the second form desappears, then i have to click bring it back from the windows taskbar. How can i prevent that? i want that the second form remains active. Thanx.

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        How you are updating form1 from form2? Alternatively, you can show the second form as a modal window.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        1 Reply Last reply
        0
        • N NewToAspDotNet

          Hi All, I have to forms. In my seconde form i have a button that updates the first form. The problem is that when i click that button, the first form get updated , bud the second form desappears, then i have to click bring it back from the windows taskbar. How can i prevent that? i want that the second form remains active. Thanx.

          N Offline
          N Offline
          nelsonpaixao
          wrote on last edited by
          #4

          Listen, try creating userforms and load then on the main form (using delegates) or create child/parent form method You can check that out here in codeproject, i myself already checked it. Give it a try. Do you really need to use to forms??? for any important reason??? in child/parent forms you can also use as many forms as you wish. Good Luck :-D

          nelsonpaixao@yahoo.com.br

          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