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. Windows Forms
  4. lost focus on form in Windows-Mobile

lost focus on form in Windows-Mobile

Scheduled Pinned Locked Moved Windows Forms
csharphelp
2 Posts 2 Posters 8 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.
  • G Offline
    G Offline
    goldsoft
    wrote on last edited by
    #1

    i have C# Windows-Mobile program, that open frmWork form - from Main form. my Forms Directed for: WindowStat = Maximized TopMost = True FormBorderStyle = None from Form1 to Form2 i do something like this: this.TopMost = false; Form FG = new frmWork(); FG.ShowDialog(); this.TopMost = true ; i try allso do this: Form FG = new frmWork(); FG.ShowDialog(); i try on frmWork to do something like this: this.BringToFront(); this.TopMost = true; But unfortunately nothing helps, Sometimes the form is opened below the main form and can not see it. I'd love to get direction to solve the problem

    G 1 Reply Last reply
    0
    • G goldsoft

      i have C# Windows-Mobile program, that open frmWork form - from Main form. my Forms Directed for: WindowStat = Maximized TopMost = True FormBorderStyle = None from Form1 to Form2 i do something like this: this.TopMost = false; Form FG = new frmWork(); FG.ShowDialog(); this.TopMost = true ; i try allso do this: Form FG = new frmWork(); FG.ShowDialog(); i try on frmWork to do something like this: this.BringToFront(); this.TopMost = true; But unfortunately nothing helps, Sometimes the form is opened below the main form and can not see it. I'd love to get direction to solve the problem

      G Offline
      G Offline
      George Jonsson
      wrote on last edited by
      #2

      Have you tried to pass the parent as a parameter with ShowDialog[^]?

      Form FG = new frmWork();
      FG.ShowDialog(this); // Where this is the reference to the main form

      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