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. How to show a child form when parent form is busy?

How to show a child form when parent form is busy?

Scheduled Pinned Locked Moved C#
tutorialquestion
4 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.
  • O Offline
    O Offline
    oohungoo
    wrote on last edited by
    #1

    When a window form is working, I would like to show a small form just to tell users "Please wait...", but it seems that when the main form is working, the small form can not appear correctly. How to solve this?

    T J 2 Replies Last reply
    0
    • O oohungoo

      When a window form is working, I would like to show a small form just to tell users "Please wait...", but it seems that when the main form is working, the small form can not appear correctly. How to solve this?

      T Offline
      T Offline
      tdciDoug
      wrote on last edited by
      #2

      Use a thread to display the child form Have a wonderful evening Doug Wright Developer, TDCI

      O 1 Reply Last reply
      0
      • O oohungoo

        When a window form is working, I would like to show a small form just to tell users "Please wait...", but it seems that when the main form is working, the small form can not appear correctly. How to solve this?

        J Offline
        J Offline
        James Poulose
        wrote on last edited by
        #3

        Threading is a sure solution. But if it is possible to solve things in other way then avoid threading. Immediately before your "heavy" processing starts launch the new form and give a Application.DoEvents (In C#) This should solve your problem, or else you can go for a thread.

        1 Reply Last reply
        0
        • T tdciDoug

          Use a thread to display the child form Have a wonderful evening Doug Wright Developer, TDCI

          O Offline
          O Offline
          oohungoo
          wrote on last edited by
          #4

          Can you teach me a little about this? I am not sure I know much of threading :D

          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