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. Visual Basic
  4. Repaint [modified]

Repaint [modified]

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
28 Posts 10 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.
  • G Guffa

    Return a status from the method in the dll that informs the VB application that it needs to refresh itself. --- b { font-weight: normal; }

    R Offline
    R Offline
    Resolver18
    wrote on last edited by
    #19

    Thanks...atleast i got a single response.. I tried to return and refresh from the vb application but it doesnt work either..:-> Do not wait to strike till the iron is hot; but make it hot by striking.

    G 1 Reply Last reply
    0
    • R Resolver18

      Thanks...atleast i got a single response.. I tried to return and refresh from the vb application but it doesnt work either..:-> Do not wait to strike till the iron is hot; but make it hot by striking.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #20

      There are millions of ways that something can not work. In exactly what way doesn't it work? --- b { font-weight: normal; }

      R 1 Reply Last reply
      0
      • N NormDroid

        Ya see if you come to the right place, you'll learn an awful lot. Never send a human to do a machine's job Agent Smith

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #21

        norm.net wrote:

        Ya see if you come to the right place, you'll learn an awful lot.

        That goes for coming to the wrong place also. ;) --- b { font-weight: normal; }

        N 1 Reply Last reply
        0
        • G Guffa

          norm.net wrote:

          Ya see if you come to the right place, you'll learn an awful lot.

          That goes for coming to the wrong place also. ;) --- b { font-weight: normal; }

          N Offline
          N Offline
          NormDroid
          wrote on last edited by
          #22

          Guffa wrote:

          That goes for coming to the wrong place also

          Never a true word. Never send a human to do a machine's job Agent Smith

          G 1 Reply Last reply
          0
          • G Guffa

            There are millions of ways that something can not work. In exactly what way doesn't it work? --- b { font-weight: normal; }

            R Offline
            R Offline
            Resolver18
            wrote on last edited by
            #23

            Nothing different i tried to move between other open windows during the wait -say 10secs in vb code .The application doesnt get refreshed or repainted ...it is displayed white window.. Do not wait to strike till the iron is hot; but make it hot by striking.

            S 1 Reply Last reply
            0
            • N NormDroid

              Guffa wrote:

              That goes for coming to the wrong place also

              Never a true word. Never send a human to do a machine's job Agent Smith

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #24

              norm.net wrote:

              Never a true word.

              No? Say that you were trying to get to work, and accidently ended up in Toulouse instead. Don't you think that you would learn a lot? --- b { font-weight: normal; }

              1 Reply Last reply
              0
              • R Resolver18

                Nothing different i tried to move between other open windows during the wait -say 10secs in vb code .The application doesnt get refreshed or repainted ...it is displayed white window.. Do not wait to strike till the iron is hot; but make it hot by striking.

                S Offline
                S Offline
                Steve Pullan
                wrote on last edited by
                #25

                Clear as mud to me. Try explaining a bit better please. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

                R 1 Reply Last reply
                0
                • S Steve Pullan

                  Clear as mud to me. Try explaining a bit better please. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

                  R Offline
                  R Offline
                  Resolver18
                  wrote on last edited by
                  #26

                  I m having a VB application which is using a .Net(C#) dll.In that dll, i have written code to make the application wait for a particular interval(alteast 2min).During that wait period if i try to move focus between other open windows and return focus back to vb application,it opens as blank white window.After that interval it gets repainted.How to make application open normally during the wait period??? code snippet i used for wait is as below: private void wait(interval) { DateTime dteEndDate; dteEndDate = DateTime.Now.AddMilliseconds(interval); while ((DateTime.Now < dteEndDate)) { System.Windows.Forms.Application.DoEvents(); } } I even tried using Thread.Sleep(interval) and got the same blank application window. Thanks Do not wait to strike till the iron is hot; but make it hot by striking.

                  G 1 Reply Last reply
                  0
                  • R Resolver18

                    I m having a VB application which is using a .Net(C#) dll.In that dll, i have written code to make the application wait for a particular interval(alteast 2min).During that wait period if i try to move focus between other open windows and return focus back to vb application,it opens as blank white window.After that interval it gets repainted.How to make application open normally during the wait period??? code snippet i used for wait is as below: private void wait(interval) { DateTime dteEndDate; dteEndDate = DateTime.Now.AddMilliseconds(interval); while ((DateTime.Now < dteEndDate)) { System.Windows.Forms.Application.DoEvents(); } } I even tried using Thread.Sleep(interval) and got the same blank application window. Thanks Do not wait to strike till the iron is hot; but make it hot by striking.

                    G Offline
                    G Offline
                    Guffa
                    wrote on last edited by
                    #27

                    As long as you don't return from the dll, the VB application can't handle the events that tell it to redraw itself. It's just waiting for the call to return. --- b { font-weight: normal; }

                    R 1 Reply Last reply
                    0
                    • G Guffa

                      As long as you don't return from the dll, the VB application can't handle the events that tell it to redraw itself. It's just waiting for the call to return. --- b { font-weight: normal; }

                      R Offline
                      R Offline
                      Resolver18
                      wrote on last edited by
                      #28

                      ok..i ll try returning from the dll.. Thank u:) Do not wait to strike till the iron is hot; but make it hot by striking.

                      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