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. BringtoFront from thread?

BringtoFront from thread?

Scheduled Pinned Locked Moved C#
question
5 Posts 3 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.
  • R Offline
    R Offline
    rbarzallo
    wrote on last edited by
    #1

    How I can execute bringtofront from thread? Thank you

    S 1 Reply Last reply
    0
    • R rbarzallo

      How I can execute bringtofront from thread? Thank you

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      Simply call it: obj.BringToFront(); Just kiddin' :-D Please elaborate what the problem is :confused:


      www.troschuetz.de

      R 1 Reply Last reply
      0
      • S Stefan Troschuetz

        Simply call it: obj.BringToFront(); Just kiddin' :-D Please elaborate what the problem is :confused:


        www.troschuetz.de

        R Offline
        R Offline
        rbarzallo
        wrote on last edited by
        #3

        Thanks, Ok, when I use bringtofront inside of a thread, this function (bringtofront) don't works. How I can do this works? Thanks

        S 1 Reply Last reply
        0
        • R rbarzallo

          Thanks, Ok, when I use bringtofront inside of a thread, this function (bringtofront) don't works. How I can do this works? Thanks

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          First I want to say, sorry for the delayed answer. Sounds like you have to invoke the BringToFront method: obj.Invoke(new MethodInvoker(obj.BringToFront)) You should do this everytime you want to change the appearance of your GUI from a background thread because otherwise undesirable behaviour can occur e.g. the application freezes.


          www.troschuetz.de

          A 1 Reply Last reply
          0
          • S Stefan Troschuetz

            First I want to say, sorry for the delayed answer. Sounds like you have to invoke the BringToFront method: obj.Invoke(new MethodInvoker(obj.BringToFront)) You should do this everytime you want to change the appearance of your GUI from a background thread because otherwise undesirable behaviour can occur e.g. the application freezes.


            www.troschuetz.de

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            Thanks for you reply. In this moment I'm going to probe your messages. Thanks

            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