473,748 Members | 9,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listboxes and ListView visual problems

Greetings,

I don't deal too much with the visual side of the framework, so I may be
simply doing something quite stupid - but if I am I can't figure it out for
the life of me.

On my machine (a Dell Inspiron 8200, gForce4 440, 1 gig Ram, etc.) I simply
fire up Visual Studio, create a Windows Form, drag a ListView onto the form,
create two columns in the listview and then compile and run. When I do a
mouse-over the "splitters" or the vertical bars between the columns on the
ListView, my cursor turns into a black square (same dimensions as the
cursor), and when I try to display an image into the listview, it shows up
as a black square too.

Also, with the listbox, text isn't updating correctly. If I plop a listbox
onto my form and set the first row of text of it in Form1_Load() of my
windows form, the text within the listbox doesn't display until I happen to
wave a modal dialog (spawned from the same Form1) over it.

I also have trouble with ComboBoxes, where any text programmaticall y
inserted into the drop-list isn't displaying ( it maintains the text,
because I can select an item from the drop-box, it just doesn't display it).

Using Spy++ I see that

WM_NCPAINT,WM_E RASEBKGND, and WM_PAINT

are called when I "wave" the modal dialog over my Form1 to show the missing
text/graphics.

I turn off hardware acceleration and I get the same problem. I have a couple
simple applications I would like to complete, but I cannot because the GUI
is totally crapping out on me. I have never had this problem before either -
and have used these controls for quite sometime on this machine without any
trouble. What could the problem be? Any ideas?

TIA,
Ben
Nov 16 '05 #1
0 1170

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

Similar topics

2
11121
by: Randy Birch | last post by:
Reposted as the original is reported as deleted from the server. re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced and a hotfix has been prepared. The supporting KB article and hotfix download link have yet to be posted, but I can provide you with the following information for those requiring an immediate fix:
5
3264
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 Application when various things occur in the package so I have written some custom events to reraise the events caught in the PackageEventsSink class. I also have a listview in details mode with several columns, my problem is that when I try and...
0
1101
by: Terry D | last post by:
I'm having an issue with an ASP.NET page (VS.NET 2003, VB.NET, Oracle back end). The page uses the standard VS.NET grid to display the records from a particular table. The user can edit certain fields in the grid. There are 10 columns in the grid, 5 static fields (labels), 4 listboxes, and 1 edit box. 2 of the listboxes hold about 12 items each and the other 2 listboxes only contain 2 items. The problem is that on some lower end...
3
10597
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
7
3555
by: Laurent Navarro | last post by:
Hello, I'm creating a control including a listview. I would like to be able to set the columns through the Design Tool in Visual Studio, so I created a parameter to access the columns of my listview: private ListView.ColumnHeaderCollection myColumns { get
3
2395
by: Michael.Suarez | last post by:
Is it me, or does it seem like they put no effort into creating the listview control in .Net. listview. A few gripes I have with .Net listview that aren't present in vb6: -Inability to set tooltiptext of subitems (without the use of a very inconveniant work around). -Inability to display images in subitems (without using the windows api
2
4351
by: salad | last post by:
This is a tip on how to speed up listboxes DRAMATICALLY. Persons that would benefit are those that are constantly updating the rowsource of a listbox/combobox in order to filter and sort the data and the refreshes are slow. (OT. I've often wondered why there is no .Sort or .Filter property for Combos and Listboxes.) My listboxes , and their rowsources, on my form were constantly being refreshed to filter and sort data. Ex:
1
1944
by: FireFlux | last post by:
Inherit the Listview Control with Visual Basic ? I have decided do inherit the Listview control some days ago to change some painting things to make the .net Listview look like the explorer's Listview. I am very new on doing those things like painting and also have not much practise with inheriting , so I got some problems while I tried to change the Control to that Listview I like. Here are my Questions : - Can I run a method if...
4
1812
by: Joerg | last post by:
Hi! I've two list boxes, both bind to different datasources (Datatable), but showing the same MemberValue (UserID) The listboxes are placed in a form which shows detail information from a datagrid about the actual selected row. The left box shows the avaible users, the right one the users added to actual selected row in the datagrid. When I select an Item in the left box and then click on a button, I want that the Item is added to the...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.