473,397 Members | 2,033 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,397 software developers and data experts.

Disappearing Listbox items...

I'm using an ActiveX Listbox control in my Windows Forms program. I
can load the listbox and have it work fine on one of my forms. But
when I add the line:

Me.MDIParent = frmMain

the form appears with the items invisible. The scrollbar shows that
the items are in the listbox--I just can't see any of them.

If I comment out the above line, the items appear normally.

Has anyone else experienced this bug?
Jul 21 '06 #1
4 1822
Kevin,

I think that few people can trace this this problem.

In my idea is normal code to create a mdichild from a mdiform by

dim mychild as new whateverform
mychild.MDIParent = me

Cor
"Kevin" <Ke****@nospam.cfl.rr.comschreef in bericht
news:g0********************************@4ax.com...
I'm using an ActiveX Listbox control in my Windows Forms program. I
can load the listbox and have it work fine on one of my forms. But
when I add the line:

Me.MDIParent = frmMain

the form appears with the items invisible. The scrollbar shows that
the items are in the listbox--I just can't see any of them.

If I comment out the above line, the items appear normally.

Has anyone else experienced this bug?

Jul 21 '06 #2
"Kevin" <Ke****@nospam.cfl.rr.comschrieb:
I'm using an ActiveX Listbox control in my Windows Forms program.
I am curious why you are not using .NET's listbox control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 21 '06 #3
Because I need to be able to change the background color of each
individual item.

I tried using the Listview control and I get the same problem only
this time it doesn't matter if the form is a child form.

The scrollbar shows the items are there, they're just not visible (see
attached picture).

On Fri, 21 Jul 2006 11:39:49 +0200, "Herfried K. Wagner [MVP]"
<hi***************@gmx.atwrote:
>"Kevin" <Ke****@nospam.cfl.rr.comschrieb:
>I'm using an ActiveX Listbox control in my Windows Forms program.

I am curious why you are not using .NET's listbox control.
Jul 25 '06 #4
....I meant also that I need checkboxes. I'd like to use the
CheckedListbox control, but I need to be able to change the background
color of each item. I know I can do that with an "owner drawn"
listbox, but the checkedlistbox doesn't support this.
On Fri, 21 Jul 2006 11:39:49 +0200, "Herfried K. Wagner [MVP]"
<hi***************@gmx.atwrote:
>"Kevin" <Ke****@nospam.cfl.rr.comschrieb:
>I'm using an ActiveX Listbox control in my Windows Forms program.

I am curious why you are not using .NET's listbox control.
Jul 25 '06 #5

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

Similar topics

1
by: Vengeance | last post by:
On the parent_form.aspx I have these controls <asp:listbox id="Operators" runat="server" Width="163px" SelectionMode="Multiple" Rows="2"></asp:listbox> <INPUT class="loButton" onclick="java...
7
by: Grant Schenck | last post by:
Hello, I have a ListBox control on a form. I add members of a class to the Items collection. They show up and I can select them. The text shown is from my classes ToString override. Now,...
1
by: yamne | last post by:
I have a problem. When I click in edit datagrid button I show two listbox and two button. I use two button to move data between two listbox. My problem is that I can't call the listbox in the...
7
by: 00_ChInkPoIntD12 | last post by:
Can anyone confirm there isn't a Sort() method for WebControl Listbox in Asp.net? It is rather simple to write a method to do the sorting, but just wondering I shouldn't invent the wheel if...
2
by: tangokilo | last post by:
Hello and thanks for your help, I have the following Listbox created in VisualStudio 2003 designer, desiring to select multiple entries from that list: -------------------------------...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
4
by: rn5a | last post by:
Can the items in a ListBox be sorted by the name of the items? The ListBox actually lists all directories & files existing in a directory on the server. Note that all the directories should be...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.