473,437 Members | 1,732 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,437 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 2669
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.