Re: How to Use Global Form Controls



The display and use of *thousands* of lines of information is the flaw. A
user cannot make proper use of a listbox control with that many items in it.
Any time you say that you need to populate a list box with that many items,
I'd say that the design if flawed, regardless of whether the use of such UI
is widespread or not.

Is there no other characteristics that you can use to filter the
information? If there are thousands of items in a 'room', are they all of
the same type? Is there no more-localized information about them (rack # or
something)? Hell, 'color' would be better than nothing!

No, I don't believe that you'll be able to do any better, as long as you
insist on stuffing a control that full of data.

Paul T.

"Kevin" <kevins@xxxxxxxxxxxxxxxxx> wrote in message
news:uHjPGpGfHHA.4020@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the input, Paul. How can you argue the design is flawed if you
don't know the flow of the application? I've seen many commercial
applications that display a huge list of items in a listbox, and the
design of those applications is far from flawed.

Anyway, the application is tracking assets within a particular room:

1) The user enters a room number (6 digits) into an editbox and press
[Next].
2) A list of descriptions for the item is presented. These descriptions
are contained in a table in the database.

We've tried using a datagrid, but it doesn't help with the time issue.

Any suggestions?

Paul G. Tobey [eMVP] wrote:
I'd argue that your UI design is flawed, not the functionality of the
control. A listbox with several *thousand* entries? That seems like a
good idea? Much better to *not* fill the control with anything until the
user gives you some guidance on what really needs to be displayed.

Paul T.

"Kevin" <kevins@xxxxxxxxxxxxxxxxx> wrote in message
news:uebskaGfHHA.1960@xxxxxxxxxxxxxxxxxxxxxxx
I have two distinct, but related problems.

1) I have form that has a listbox control. On xx_Load(), I load the
listbox with items from a SQL CE 2005 database table. This table has
several thousand records. It takes 10-15 seconds to load these records.
How can I reduce the amount of time it takes to load the control? Also,
would a datagrid be a better choice?

2) I thought about pre-loading a "global" listbox control with the
values and simply replacing (or adding) the control to the form. How
would I go about setting this up?

Thanks,
Kevin


.



Relevant Pages

  • Re: Modifying the Listbox Control
    ... and overriding OnPaint in CF controls isn't supported. ... any ideia of how to implement this image on the right side of each listbox element? ... I was wondering if I can modify the listbox control using all the properties and methos of the default listbox control, BUT, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Dynamically choosing form fields
    ... >display one of a choice of thirteen fields. ... For example, load the ... >amount for January if it is January, load the amount for February if it ... control that can be used to "load" any of the fields in the ...
    (microsoft.public.access.formscoding)
  • Re: Weird GUI performance slowdown
    ... I have a ListBox control. ... repaint itself twice as slow. ... My .NET blog: http://weblogs.asp.net/fbouma ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reflection - Need advice
    ... Basically, if there's anything you need to know about the code, you can find it out using reflection. ... A control like that will let you pass object instances to it as list elements. ... Then you can set a property (for ListBox, it would be the DisplayMember property) that's the name of the property in your object "oUser" to use to display the name of the object. ... With reflection, not only does the ListBox control not need to know anything about the type of the object being put into the list, the type of the object being put into the list doesn't even need to know anything about the ListBox. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Up down arrow keys only work on list box after a mouse click...
    ... Do you think it would work to set a flag in the Load ... > Wayne the ability to set focus to a ListBox control in the Form's Load ...
    (microsoft.public.access.formscoding)