Weird Display Behavior

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
C

CJ Taylor

Alright,

I wrote this program that is used throughout my entire company for the past
9 months. Now, we have deployed it to well over 100 machines. So my Sys
Admin comes up to me today and tells me how a list box will not display any
values that are bound to it, unless he clicks on another tab and then comes
back (presumably calling a refresh).

So for a test I went ahead and called refresh whenever the list box was
clicked on, jsut to see. However, no luck. Only when you go the tab. As I
said, this is the same program we've deployed 100+ times.

We tried upgrading Windows XP to SP1 and then to SP2 as well as upgrade the
1.1. framework to SP1. No luck.

This is a Dell Precision 370 using an NVidia Quattro UADRO NVS 280 PCI
Express video card. We tried swapping the video cards, no luck. Tried
updated drivers from Nvidia, no luck. Was wondering if anyone else had
experienced such behavior.

Thanks,
CJ
 
Not quite the same problem. It sounds as if herfried is saying they are
going off the screen.. As long as DPI still represents Dot Pitch.

Mine is right in the middle of the screen. and it shows up if you click
different tabs and then come back.
 
I don't know if what you are seeing is the same thing I have experienced or
not, but here is what I have found...
There is some sort of issue with the Tab Control.
A few controls will not graphically update correctly when switching back and
forth between tabs. It might be related to the Tab Control not raising some
sort of event to let the child controls know they need to re-render. If the
contents of the control are updated while invisible, sometimes the old
values appear. If nothing has changed, sometimes it just doesn't re-paint.
In my case, I got around this by creating an inherited control and dealing
with the refreshes myself. But this fit my original plan anyway as I needed
specialized controls.

I have not continued to research a work around or find the exact cause.
But text boxes do seem to be very sensitive to this.

Gerald
 
I have seen this problem prety consistently with docked data grids.

If the form is resized while on one tab, and you switch to another tab, the
scrollbars on the datagrids on the new tab will be floating in the middle of
the datagrid (at the old positions). You have to resize the form with the
datagrid visible to get them to redraw. I've tried putting .Invalidate and
..Refresh on the Datagrids on my tab switch, but that hasn't fixed it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top