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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Child form, which stays in front

Child form, which stays in front

Scheduled Pinned Locked Moved C#
security
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.
  • S Offline
    S Offline
    sea
    wrote on last edited by
    #1

    I'm looking for a way to make an authentication form to my windows form based app. I want this form to be left in front of the parent main form, until user succeccfuly authenticate. If he press cancel it close the parent form. No other from may be load in front if this authentication form. TIA, Ronen Ronen

    Z 1 Reply Last reply
    0
    • S sea

      I'm looking for a way to make an authentication form to my windows form based app. I want this form to be left in front of the parent main form, until user succeccfuly authenticate. If he press cancel it close the parent form. No other from may be load in front if this authentication form. TIA, Ronen Ronen

      Z Offline
      Z Offline
      ZejulioZ
      wrote on last edited by
      #2

      Make it modal. When you load you're authentification form, call theAuthForm.ShowDialog(parentForm); and that's probably enought but if you are looking to have the dialog abolutely on the top of all the others application windows , try the property theAuthForm.TopMost=true. I hope I've correctly understood your question. Julien

      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