Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Complex ListBox - How do I create it?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich S - 16 Sep 2004 13:21 GMT
Hi,

I want to create a list collection of complex frames.  I.e. I want a listbox
type of container, where the entries are complex ( each entry contains
individual buttons / images / text ).

My original idea was to use a custom listbox, and each item in the list
would be an indivudual Form.  The custom listbox could set the size and
position of each item in an overridden "DrawItem" function.  The
"MeasureItem" function was overridden to get the size of the Form ( and
hence the listbox would correctly set the scrollbar etc.. ).

However, as you cannot make the listbox a parent of the forms it doesnt seem
like a good solution.  I've already knocked up a quick app, but wasnt sure
if it was worth continuing with my current way of doing it.

The reason I liked this idea, was that you could construct a base Form for
use in the custom listbox.  Then derive from that and you could contain all
sorts of complex forms in the listbox.  This would make it real easy to add
new things.

Is there a better way of doing this ?  Or am I going to have to get dirty
and manually create my controls ( buttons / etc .. ) inside code for each
entry in my custom listbox ?

I suppose what I want are multi MDI containers inside my toplevel window.

Please help.

regards,
R.
Rich S - 16 Sep 2004 14:03 GMT
Oops.  I've just noticed I need to use a UserControl (instead of a Form).

Ah well.  Sorry for the original post.

R.

> Hi,
>
[quoted text clipped - 27 lines]
> regards,
> R.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.