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.
  • R Resolver18

    Say:I have vb application which uses a .Net dll.If i had to repaint or refresh the calling VB application from the .Net dll's code,how could i do that?:confused: I tried using (Application.DoEvents) method but it doesnt effectively work, the vb application screen becomes white when focus is moved to other open windows and brought back...:zzz: Do not wait to strike till the iron is hot; but make it hot by striking. -- modified at 12:12 Thursday 1st June, 2006

    A Offline
    A Offline
    Allah On Acid
    wrote on last edited by
    #14

    Resolver18 wrote:

    Do not wait to strike till the iron is hot; but make it hot by striking.

    Profound.

    1 Reply Last reply
    0
    • G Guffa

      That's only half a solution. The other half would be what to use instead. :) --- b { font-weight: normal; }

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

      Guffa wrote:

      The other half would be what to use instead

      But that would be telling...;) Never send a human to do a machine's job Agent Smith

      R 1 Reply Last reply
      0
      • N NormDroid

        Guffa wrote:

        The other half would be what to use instead

        But that would be telling...;) Never send a human to do a machine's job Agent Smith

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

        thanks for ur suggestion:cool: Do not wait to strike till the iron is hot; but make it hot by striking.

        N 1 Reply Last reply
        0
        • R Resolver18

          thanks for ur suggestion:cool: Do not wait to strike till the iron is hot; but make it hot by striking.

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

          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

          R G 2 Replies 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

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

            Thank u ,that was my first message and realized later about what is lounge and other language specifc forums Do not wait to strike till the iron is hot; but make it hot by striking. -- modified at 3:18 Friday 2nd June, 2006

            1 Reply Last reply
            0
            • 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