Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralRe: RSS Feed Reader for .NET Windows Application Pin
saanj3-Nov-08 7:09
saanj3-Nov-08 7:09 
QuestionDymatic CheckBox in TableLayoutPanel Pin
yulien10203-Nov-08 4:15
yulien10203-Nov-08 4:15 
QuestionContextMenuStrip show problem Pin
josip cagalj3-Nov-08 4:11
josip cagalj3-Nov-08 4:11 
AnswerRe: ContextMenuStrip show problem Pin
Mircea Puiu3-Nov-08 4:38
Mircea Puiu3-Nov-08 4:38 
GeneralRe: ContextMenuStrip show problem Pin
josip cagalj3-Nov-08 20:07
josip cagalj3-Nov-08 20:07 
QuestionMerge dll files into one dll file Pin
Sami Sammour3-Nov-08 3:37
Sami Sammour3-Nov-08 3:37 
AnswerRe: Merge dll files into one dll file Pin
Dave Kreskowiak3-Nov-08 3:54
mveDave Kreskowiak3-Nov-08 3:54 
RantRe: Merge dll files into one dll file Pin
Paul Conrad3-Nov-08 4:57
professionalPaul Conrad3-Nov-08 4:57 
AnswerRe: Merge dll files into one dll file Pin
Giorgi Dalakishvili3-Nov-08 8:05
mentorGiorgi Dalakishvili3-Nov-08 8:05 
QuestionMaking Forms Work on Different Screen Resolutions Programatically... Pin
swjam3-Nov-08 1:52
swjam3-Nov-08 1:52 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
EliottA3-Nov-08 1:54
EliottA3-Nov-08 1:54 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
#realJSOP3-Nov-08 1:56
professional#realJSOP3-Nov-08 1:56 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
swjam3-Nov-08 2:10
swjam3-Nov-08 2:10 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Dan Neely3-Nov-08 2:22
Dan Neely3-Nov-08 2:22 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
#realJSOP3-Nov-08 2:33
professional#realJSOP3-Nov-08 2:33 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Giorgi Dalakishvili3-Nov-08 2:36
mentorGiorgi Dalakishvili3-Nov-08 2:36 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Alan Balkany3-Nov-08 4:03
Alan Balkany3-Nov-08 4:03 
QuestionAbout Sip implementation Pin
waqas shah3-Nov-08 1:13
waqas shah3-Nov-08 1:13 
AnswerRe: About Sip implementation Pin
Eddy Vluggen3-Nov-08 1:46
professionalEddy Vluggen3-Nov-08 1:46 
AnswerRe: About Sip implementation Pin
AhsanS3-Nov-08 1:54
AhsanS3-Nov-08 1:54 
AnswerRe: About Sip implementation Pin
harold aptroot3-Nov-08 10:07
harold aptroot3-Nov-08 10:07 
QuestionColumn Header Not dispalying text in center Pin
Sandeep Kalra3-Nov-08 1:00
Sandeep Kalra3-Nov-08 1:00 
Hi All

Here is the code below

// List view items starts here.
ListView listView = new ListView();
listView.Bounds = new Rectangle(new Point(3, 16), new Size(900,900));

// Set the view to show details.
listView.View = View.Details;

// Allow the user to rearrange columns.
listView.AllowColumnReorder = true;

// Display check boxes.
listView.CheckBoxes = true;

// Select the item and subitems when selection is made.
listView.FullRowSelect = true;

// Display grid lines.
listView.GridLines = true;

listView.Visible=true;


listView.Columns.Add("File Name", 100, HorizontalAlignment.Center);
listView.Columns.Add("File Location", 100, HorizontalAlignment.Center);
listView.Columns.Add("File size", 100, HorizontalAlignment.Center);

// Add the ListView to the control collection.
this.Controls.Add(listView);


The text in first column header is aligned to left although i have aligned it to center.
The text in other two columns header is aligned to center as set by me.

How can i make the text in first column header to aligned centerally.


Thanks in advance
AnswerRe: Column Header Not dispalying text in center Pin
Dave Kreskowiak3-Nov-08 1:59
mveDave Kreskowiak3-Nov-08 1:59 
QuestionDataGridView navigation Pin
kanchoette3-Nov-08 0:33
kanchoette3-Nov-08 0:33 
AnswerRe: DataGridView navigation Pin
Giorgi Dalakishvili3-Nov-08 0:59
mentorGiorgi Dalakishvili3-Nov-08 0:59 

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.