Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

listbox and combobox items are invisible
Some recent Windows update caused a change in Visual Basic - Visual Studio
2003 that causes the following aberrant behavior:
Items added to a listbox (or combobox) creates invisible items (that can be
selected).
To reproduce this behavior I can create a new Windows Application and paste
this code in the form.load event:
Dim listBox1 As New ListBox
listBox1.Size = New System.Drawing.Size(200, 100)
listBox1.Location = New System.Drawing.Point(10, 10)
Me.Controls.Add(listBox1)
listBox1.BeginUpdate()
Dim x As Integer
For x = 1 To 50
listBox1.Items.Add("Item " & x.ToString())
Next x
listBox1.EndUpdate()

Report this thread to moderator Post Follow-up to this message
Old Post
WolfenSteed
09-30-04 02:27 AM


Re: listbox and combobox items are invisible
Try a newsgroup with DotNet in the name as you will probably get an answer
alot quicker.  These newsgroups are really for VB Classic (6 and below)..

Good luck.

--
Chris Hanscom
MVP (Visual Basic)
http://www.veign.com
--

"WolfenSteed" <WolfenSteed@discussions.microsoft.com> wrote in message
news:DD812E6C-E0C1-4ABB-B60F-9A9B06FF2DB2@microsoft.com...
> Some recent Windows update caused a change in Visual Basic - Visual Studio
> 2003 that causes the following aberrant behavior:
> Items added to a listbox (or combobox) creates invisible items (that can
be
> selected).
> To reproduce this behavior I can create a new Windows Application and
paste
> this code in the form.load event:
>       Dim listBox1 As New ListBox
>       listBox1.Size = New System.Drawing.Size(200, 100)
>       listBox1.Location = New System.Drawing.Point(10, 10)
>       Me.Controls.Add(listBox1)
>       listBox1.BeginUpdate()
>       Dim x As Integer
>       For x = 1 To 50
>          listBox1.Items.Add("Item " & x.ToString())
>       Next x
>       listBox1.EndUpdate()



Report this thread to moderator Post Follow-up to this message
Old Post
Veign
09-30-04 02:27 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:39 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.