Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
CKnig18-Dec-07 3:21
CKnig18-Dec-07 3:21 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
David Veeneman18-Dec-07 3:41
David Veeneman18-Dec-07 3:41 
GeneralRe: VS 2008 Walkthroughs on WPF? Pin
Paul Conrad24-Dec-07 19:57
professionalPaul Conrad24-Dec-07 19:57 
QuestionAny mapping tool for NHibernate ? Pin
imagic17-Dec-07 15:29
imagic17-Dec-07 15:29 
AnswerRe: Any mapping tool for NHibernate ? Pin
ekynox17-Dec-07 16:15
ekynox17-Dec-07 16:15 
AnswerRe: Any mapping tool for NHibernate ? Pin
Mark Churchill17-Dec-07 20:57
Mark Churchill17-Dec-07 20:57 
QuestionEnhanced Listbox Pin
tcsoccerman17-Dec-07 15:08
tcsoccerman17-Dec-07 15:08 
GeneralRe: Enhanced Listbox Pin
Anthony Mushrow17-Dec-07 15:35
professionalAnthony Mushrow17-Dec-07 15:35 
Not too difficult really, but a good idea.

Basically, you will have to handle the drawing yourself.
Each item will be as wide as the control, and as high as the text (or therabouts). You draw the picy on the left, and the text about 20px in (assuming the picture to be about 16*16)

Probably you could have a variable for the currently selected (expanded) item, so that when it is drawn you know to draw the extra info, and set different colours.

As for drawing each control, have a variable for the current y position, start at 0. Draw an item and find its height, add its hieght to the variable. The next control starts drawing at this y value. Of course, be sure not to draw below the bottom of the control, its just a waste (ie, when your y variable is greater than the height of your control).

These are just my ideas, and i'm sure they could be improved upon.
My current favourite word is: Bauble!
-SK Genius


GeneralRe: Enhanced Listbox Pin
Luc Pattyn17-Dec-07 15:38
sitebuilderLuc Pattyn17-Dec-07 15:38 
GeneralRe: Enhanced Listbox Pin
tcsoccerman18-Dec-07 15:18
tcsoccerman18-Dec-07 15:18 
GeneralRecursively calling a generic method with runtime parameters Pin
Skippums17-Dec-07 12:38
Skippums17-Dec-07 12:38 
GeneralRe: Recursively calling a generic method with runtime parameters Pin
PIEBALDconsult17-Dec-07 16:14
mvePIEBALDconsult17-Dec-07 16:14 
QuestionHow to enter foreign key values to combobox Pin
AndrusM17-Dec-07 10:30
AndrusM17-Dec-07 10:30 
AnswerRe: How to enter foreign key values to combobox Pin
darkelv17-Dec-07 16:04
darkelv17-Dec-07 16:04 
GeneralReflection with Generic Lists [modified] Pin
DaveyM6917-Dec-07 9:23
professionalDaveyM6917-Dec-07 9:23 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore17-Dec-07 11:31
Ed.Poore17-Dec-07 11:31 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6918-Dec-07 0:33
professionalDaveyM6918-Dec-07 0:33 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 10:04
Ed.Poore18-Dec-07 10:04 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6918-Dec-07 11:18
professionalDaveyM6918-Dec-07 11:18 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 14:23
Ed.Poore18-Dec-07 14:23 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 14:44
Ed.Poore18-Dec-07 14:44 
GeneralRe: Reflection with Generic Lists [modified] Pin
DaveyM6919-Dec-07 0:39
professionalDaveyM6919-Dec-07 0:39 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore19-Dec-07 4:23
Ed.Poore19-Dec-07 4:23 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore19-Dec-07 13:19
Ed.Poore19-Dec-07 13:19 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6920-Dec-07 0:04
professionalDaveyM6920-Dec-07 0:04 

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.