Repaint [modified]
-
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
Resolver18 wrote:
Do not wait to strike till the iron is hot; but make it hot by striking.
Profound.
-
That's only half a solution. The other half would be what to use instead. :) --- b { font-weight: normal; }
-
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
thanks for ur suggestion:cool: Do not wait to strike till the iron is hot; but make it hot by striking.
-
thanks for ur suggestion:cool: Do not wait to strike till the iron is hot; but make it hot by striking.
-
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
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
-
Return a status from the method in the dll that informs the VB application that it needs to refresh itself. --- b { font-weight: normal; }
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.
-
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.
-
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
-
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; }
-
There are millions of ways that something can not work. In exactly what way doesn't it work? --- b { font-weight: normal; }
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.
-
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
-
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.
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 :-) -
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 :-)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.
-
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.
-
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; }
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.