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. Problem in closing the login window

Problem in closing the login window

Scheduled Pinned Locked Moved C#
helpsecurityperformance
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.
  • I Offline
    I Offline
    I explore code
    wrote on last edited by
    #1

    hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window: this.FindForm().Visible=false; but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent form this.FindForm().Close(); Please help

    L M N 3 Replies Last reply
    0
    • I I explore code

      hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window: this.FindForm().Visible=false; but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent form this.FindForm().Close(); Please help

      L Offline
      L Offline
      logicaldna
      wrote on last edited by
      #2

      Use MDI container , open the login as the child of tht MDI, on successful login close the form as its a child it wont close the parent, open a new form which you want to show ! does tht help ? regards, logicaldna

      Chase your dreams ! http://eminencetech.net[^]

      1 Reply Last reply
      0
      • I I explore code

        hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window: this.FindForm().Visible=false; but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent form this.FindForm().Close(); Please help

        M Offline
        M Offline
        Martin 0
        wrote on last edited by
        #3

        Hello, Maybe a splash screen would help you out. http://www.codeproject.com/csharp/applicationcontextsplash.asp[^] All the best, Martin

        1 Reply Last reply
        0
        • I I explore code

          hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window: this.FindForm().Visible=false; but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent form this.FindForm().Close(); Please help

          N Offline
          N Offline
          Navneet Hegde
          wrote on last edited by
          #4

          Hi, There is simple approach to this problem create MDI form and on MDI Form_load event formLogin.Showdialog() --for .Net-- OR formLogin.show(vbmodal) --for VB classic-- [ remember formLogin is not a child Form ] and At Last on Successful Login Close formLogin.Close Thanks & Wishes Navneet Hegde Nashik(City Of Pilgrimage)

          Develop2Program & Program2Develop

          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