Click here to Skip to main content
16,013,440 members
Home / Discussions / C#
   

C#

 
GeneralRe: DLL Pin
Heath Stewart22-May-04 8:53
protectorHeath Stewart22-May-04 8:53 
GeneralRe: DLL Pin
Snowjim22-May-04 9:36
Snowjim22-May-04 9:36 
QuestionHow to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 9:55
god4k20-May-04 9:55 
AnswerRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart20-May-04 10:09
protectorHeath Stewart20-May-04 10:09 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 23:52
god4k20-May-04 23:52 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart21-May-04 3:33
protectorHeath Stewart21-May-04 3:33 
GeneralListBox with ComboBox embedded Pin
yipan20-May-04 9:44
yipan20-May-04 9:44 
GeneralRe: ListBox with ComboBox embedded Pin
Heath Stewart20-May-04 10:05
protectorHeath Stewart20-May-04 10:05 
One idea would be to use owner drawing and in your handler for the DrawItem event (or, if you extend ListBox - which is a better idea for enscapsulation - override OnDrawItem) and use the DrawItemEventArgs.Bounds to position an instance of a ComboBox tied to each item. The trick is to make sure that the ComboBox instances are created and disposed when an object is added or removed from the ListBox. The best way is to extend ListBox.ObjectCollection with your own collection class and override ListBox.CreateItemCollection so that you return an instance of your derivative class.

To make sure that Windows messages are properly dispatched, you may need to add each instance of the ComboBox to the ListBox.Controls collection property. Never tried this, so I'm really not sure. All the owner-drawn ListBoxes I've written and have seen simply draw the items.

See the documentation for the ListBox.DrawMode property in the .NET Framework SDK for more information on owner drawing with a ListBox.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: ListBox with ComboBox embedded Pin
Anonymous20-May-04 21:02
Anonymous20-May-04 21:02 
GeneralProgrammatic LDAP Queries Pin
MrEyes20-May-04 6:36
MrEyes20-May-04 6:36 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart20-May-04 8:08
protectorHeath Stewart20-May-04 8:08 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes20-May-04 11:16
MrEyes20-May-04 11:16 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart20-May-04 11:21
protectorHeath Stewart20-May-04 11:21 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes21-May-04 4:38
MrEyes21-May-04 4:38 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart21-May-04 4:50
protectorHeath Stewart21-May-04 4:50 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes21-May-04 5:07
MrEyes21-May-04 5:07 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart21-May-04 5:16
protectorHeath Stewart21-May-04 5:16 
GeneralCustom ToolBar Pin
BaShOr20-May-04 6:32
BaShOr20-May-04 6:32 
GeneralRe: Custom ToolBar Pin
hbk72320-May-04 7:53
hbk72320-May-04 7:53 
GeneralRe: Custom ToolBar Pin
Heath Stewart20-May-04 8:07
protectorHeath Stewart20-May-04 8:07 
GeneralRe: Custom ToolBar Pin
BaShOr20-May-04 11:46
BaShOr20-May-04 11:46 
GeneralRe: Custom ToolBar Pin
BaShOr20-May-04 22:58
BaShOr20-May-04 22:58 
GeneralXML,XSD and Dataset's with c# Pin
Rhys__66620-May-04 6:18
Rhys__66620-May-04 6:18 
GeneralRe: XML,XSD and Dataset's with c# Pin
partyganger20-May-04 6:25
partyganger20-May-04 6:25 
GeneralSTCK to a DateTime Pin
seevse20-May-04 5:40
seevse20-May-04 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.