Click here to Skip to main content
15,891,136 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Horizontally Scroll Lines of Text Pin
Brady Kelly29-Oct-07 4:39
Brady Kelly29-Oct-07 4:39 
QuestionAccessing multiple groups of radiobuttons Pin
Steve Landers26-Oct-07 13:25
Steve Landers26-Oct-07 13:25 
AnswerRe: Accessing multiple groups of radiobuttons Pin
Luc Pattyn26-Oct-07 14:15
sitebuilderLuc Pattyn26-Oct-07 14:15 
GeneralRe: Accessing multiple groups of radiobuttons Pin
Steve Landers27-Oct-07 10:08
Steve Landers27-Oct-07 10:08 
GeneralRe: Accessing multiple groups of radiobuttons Pin
Luc Pattyn27-Oct-07 13:25
sitebuilderLuc Pattyn27-Oct-07 13:25 
GeneralRe: Accessing multiple groups of radiobuttons Pin
Steve Landers27-Oct-07 13:56
Steve Landers27-Oct-07 13:56 
QuestionHow to display char & integer type variables toether in a list box Pin
nuweima25-Oct-07 19:56
nuweima25-Oct-07 19:56 
AnswerRe: How to display char & integer type variables toether in a list box Pin
Luc Pattyn26-Oct-07 14:22
sitebuilderLuc Pattyn26-Oct-07 14:22 
Hi,

1. ListBox

this is what a ListBox shows:
- strings, if that is what you add to its Items collection
- ToString() results of whatever type you add to Items
- whatever you want if you do the painting yourself.

So you must:
(a) either construct a string that holds all the required information and at that to the
Items; you may want to choose a non-proportional font (e.g.Courier New), and
String.PadRight() or String.PadLeft() may help you in simulating a columnar layout
(b) or go for an "owner drawn" DrawMode, and use the relevant events (DrawItem, MeasureItem).

(b) is more complex than (a) !

2. DataGridView

showing the same thing in a DGV may require slightly more code, but the result will
show resizeable and sortable columns all by itself.
I suggest you read the DGV documentation and some CodeProject article on it. You can
and should use the Search facilities (on CodeProject or Google).

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


QuestionEmbedding WMP and changing it's skin Pin
H.R25-Oct-07 19:37
H.R25-Oct-07 19:37 
AnswerRe: Embedding WMP and changing it's skin Pin
Kristian Sixhøj26-Oct-07 8:49
Kristian Sixhøj26-Oct-07 8:49 
GeneralRe: Embedding WMP and changing it's skin Pin
H.R27-Oct-07 16:04
H.R27-Oct-07 16:04 
GeneralRe: Embedding WMP and changing it's skin Pin
Kristian Sixhøj31-Oct-07 6:52
Kristian Sixhøj31-Oct-07 6:52 
QuestionCombo Box Error - DataGridViewComboBoxCell value is not valid Pin
basi001425-Oct-07 6:37
basi001425-Oct-07 6:37 
AnswerRe: Combo Box Error - DataGridViewComboBoxCell value is not valid Pin
jitender.parnami10-Mar-11 0:07
jitender.parnami10-Mar-11 0:07 
AnswerRe: Combo Box Error - DataGridViewComboBoxCell value is not valid Pin
Narayan MCA23-May-11 21:37
Narayan MCA23-May-11 21:37 
Questionwindows xp themes Pin
sresth24-Oct-07 20:18
sresth24-Oct-07 20:18 
AnswerRe: windows xp themes Pin
Paul Conrad27-Oct-07 11:22
professionalPaul Conrad27-Oct-07 11:22 
GeneralIterate Through BindingNavigator Pin
Brady Kelly24-Oct-07 6:20
Brady Kelly24-Oct-07 6:20 
QuestionBehavior of UP/DOWN keys in AutoComplete-enabled ComboBox? Pin
@MSI24-Oct-07 3:25
@MSI24-Oct-07 3:25 
AnswerRe: Behavior of UP/DOWN keys in AutoComplete-enabled ComboBox? Pin
Paul Conrad27-Oct-07 13:33
professionalPaul Conrad27-Oct-07 13:33 
GeneralPattern for Swapping User Controls Pin
Brady Kelly24-Oct-07 3:24
Brady Kelly24-Oct-07 3:24 
Questionhow to develop a printing queue Pin
nuweima24-Oct-07 0:50
nuweima24-Oct-07 0:50 
AnswerRe: how to develop a printing queue Pin
TJoe24-Oct-07 2:16
TJoe24-Oct-07 2:16 
QuestionParent/Child Form Query Pin
Mehawitchi23-Oct-07 12:25
Mehawitchi23-Oct-07 12:25 
AnswerRe: Parent/Child Form Query Pin
Dave Kreskowiak23-Oct-07 14:54
mveDave Kreskowiak23-Oct-07 14:54 

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.