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. Check for the status of Windows Form

Check for the status of Windows Form

Scheduled Pinned Locked Moved C#
questionhelpdiscussion
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.
  • A Offline
    A Offline
    ASysSolvers
    wrote on last edited by
    #1

    In my application, when I showing a new form I do, Form2 frm2=new Form2(); This.hide(); frm2.TopMost = true; frm2.Show(); I do like that..again when I come to first form. I do the same being in second form.(imagine I am in Form2 now.) this.Close(); frm1.Show(); // this is my first form. Problem is some times I cant see my first form.it is still hiden. So it is happens sometimes. Are there any way to know (some status) to know my form is already hiden or shown. What is the best practice of this kind of situation?

    L 1 Reply Last reply
    0
    • A ASysSolvers

      In my application, when I showing a new form I do, Form2 frm2=new Form2(); This.hide(); frm2.TopMost = true; frm2.Show(); I do like that..again when I come to first form. I do the same being in second form.(imagine I am in Form2 now.) this.Close(); frm1.Show(); // this is my first form. Problem is some times I cant see my first form.it is still hiden. So it is happens sometimes. Are there any way to know (some status) to know my form is already hiden or shown. What is the best practice of this kind of situation?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, Show/Hide methods and Visible property always correspond. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Voting for dummies? No thanks. X|


      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