473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

listview invalidate problem

high!

i've created a listviewitem[]-object with a complete list and add it
during runtime into a listview.

lvParameters.BeginUpdate();
lvParameters.Items.Clear();
lvParameters.Items.AddRange( ItemList );
lvParameters.EndUpdate();
lvParameters.Invalidate();

the list shows my entries, but with a different font-size and without
backgroundcolors. but after minimizing the app or switching to another
window and back, the display works correkt.

i've left a screenshot on http://stud4.tuwien.ac.at/~e0225971/screenshot.jpg
on the left you see before and on the right after the manual
screenupdate (ignore the white artefacts - made by myself).

any suggestions?

thanks
rené
Jul 8 '08 #1
1 2664
Do you have any code for the items you are creating, it sounds like you are
giving them funky formats which are displaying immediatly.
Having that code would give me something more solid to test with to
replicate the issue and have a look at why its happening.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"ohmmega" wrote:
high!

i've created a listviewitem[]-object with a complete list and add it
during runtime into a listview.

lvParameters.BeginUpdate();
lvParameters.Items.Clear();
lvParameters.Items.AddRange( ItemList );
lvParameters.EndUpdate();
lvParameters.Invalidate();

the list shows my entries, but with a different font-size and without
backgroundcolors. but after minimizing the app or switching to another
window and back, the display works correkt.

i've left a screenshot on http://stud4.tuwien.ac.at/~e0225971/screenshot.jpg
on the left you see before and on the right after the manual
screenupdate (ignore the white artefacts - made by myself).

any suggestions?

thanks
rené
Jul 9 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vince | last post by:
I need to programmatically select the first item in a listview before the listview is displayed, so far I'm not having any luck. Here's what I tried in the init for the listview... ...
5
by: Simon Middlemiss | last post by:
I am writting a program to manage DTS packages which is based on the code example at the following link http:\\www.support.microsoft.com/?kbid=319985. I need to do things in a Windows Forms...
0
by: Gates 72 | last post by:
Hello All, I am seeing something annoying with the listview. I have a listview that spans an area greater than the width of my form, and have a scrollbar that moves it left and right. When I...
19
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
1
by: RML | last post by:
Hi all, I have a VB.NET app which displays some data in a "Details" view of a ListView control. The code to populate the list is run in the Form_Load handler. When I run the Form,, all worked...
0
by: Ion | last post by:
Hi, I have a ListView that is filled with selected paths from OpenFileDialog. Some times ListView is not redraw after OpenFileDialog close. I tried to fill paths to ListBox. I got the same...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
7
by: Liz | last post by:
My ListView components seem to produce distortion when they are scrolled in Details view; it looks almost like the text has a "strike-through" attribute applied to it. Does anyone know of a fix...
1
by: ohmmega | last post by:
hi folks, i've created an listviewitem collection and added it with the addrange method to a listview. so far so good. the listview-style is set to details and the items are formatted with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.