M
Mark Thompson
I have a problem with my Visual Basic .NET 2003 application which I
have so far been unable to resolve.
I am trying to get an OpenGL control that I have created working
properly as a control on my main form in my VB.NET application. It does
work and render correctly but the problem is that there is an awful
flickering that happens on most PCs I try it on. The flickering is
reminiscent of the sort that you get on a TV when it is not tuned in
properly, i.e. portions of the background are visible in horizontal
bands that move up or down the control and make it pretty much
unusable.
Bizarrely though, on my laptop, if I Alt-Tab to another application
which moves in front of the flickering control and then Alt-Tab back to
my application then it is fine for a while. However, as soon as any
other dialog or message box appears in my application, or I resize it
then the flickering starts again. On two of my colleague's laptops
however, we get the flickering and no amount of moving things in front
of it makes any difference.
Also, when I remote desktop into my laptop from my PC, I do not see
this problem at all, i.e. the control behaves perfectly.
I am using an OpenGL wrapper library. I oringally tried using CsGL and
then I tried Tao (more recent and maintained library) for the control,
both have the same result.
The code I am using has a timer on the form which fires periodically to
force the refresh of the control. I have tried varying the periodicity
of this from 1ms right up to 1000ms but the flickering still happens.
With 1000ms it almost appears like as soon as the control is refreshed,
it disappears as with this periodicity it becomes almost invisible.
Does anyone have any ideas on this as it is driving me barmy now!
Thanks,
Mark.
have so far been unable to resolve.
I am trying to get an OpenGL control that I have created working
properly as a control on my main form in my VB.NET application. It does
work and render correctly but the problem is that there is an awful
flickering that happens on most PCs I try it on. The flickering is
reminiscent of the sort that you get on a TV when it is not tuned in
properly, i.e. portions of the background are visible in horizontal
bands that move up or down the control and make it pretty much
unusable.
Bizarrely though, on my laptop, if I Alt-Tab to another application
which moves in front of the flickering control and then Alt-Tab back to
my application then it is fine for a while. However, as soon as any
other dialog or message box appears in my application, or I resize it
then the flickering starts again. On two of my colleague's laptops
however, we get the flickering and no amount of moving things in front
of it makes any difference.
Also, when I remote desktop into my laptop from my PC, I do not see
this problem at all, i.e. the control behaves perfectly.
I am using an OpenGL wrapper library. I oringally tried using CsGL and
then I tried Tao (more recent and maintained library) for the control,
both have the same result.
The code I am using has a timer on the form which fires periodically to
force the refresh of the control. I have tried varying the periodicity
of this from 1ms right up to 1000ms but the flickering still happens.
With 1000ms it almost appears like as soon as the control is refreshed,
it disappears as with this periodicity it becomes almost invisible.
Does anyone have any ideas on this as it is driving me barmy now!
Thanks,
Mark.