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. Datagrid form steals focus

Datagrid form steals focus

Scheduled Pinned Locked Moved C#
questionhelp
3 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.
  • T Offline
    T Offline
    the last free name
    wrote on last edited by
    #1

    I have an app with a few forms all of which can be opened at the same time. From the starting form a blocking socket class is initialised in a new thread, and this class raises different data received events handled by the different forms depending on the data received. The problem is one form adds the data to a datagrid and whenever this event is consumed this form comes to the front. this does not happen with the other forms. So the question is why does this happen and how can I stop it?

    S 1 Reply Last reply
    0
    • T the last free name

      I have an app with a few forms all of which can be opened at the same time. From the starting form a blocking socket class is initialised in a new thread, and this class raises different data received events handled by the different forms depending on the data received. The problem is one form adds the data to a datagrid and whenever this event is consumed this form comes to the front. this does not happen with the other forms. So the question is why does this happen and how can I stop it?

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      hi, You can check the property TopMost property of you form. Check it's status.;) ************************** S r e e j i t h N a i r **************************

      T 1 Reply Last reply
      0
      • S sreejith ss nair

        hi, You can check the property TopMost property of you form. Check it's status.;) ************************** S r e e j i t h N a i r **************************

        T Offline
        T Offline
        the last free name
        wrote on last edited by
        #3

        Top most is set to false, and I don't change it in code. But thanks for the suggestion, it rules something out.

        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