Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: DataGridView navigation Pin
kanchoette3-Nov-08 21:28
kanchoette3-Nov-08 21:28 
GeneralRe: DataGridView navigation Pin
nelsonpaixao3-Nov-08 12:32
nelsonpaixao3-Nov-08 12:32 
QuestionInterface member's attributes Pin
Mr. Candyman3-Nov-08 0:18
Mr. Candyman3-Nov-08 0:18 
AnswerRe: Interface member's attributes Pin
John Gathogo3-Nov-08 0:23
John Gathogo3-Nov-08 0:23 
GeneralRe: Interface member's attributes Pin
Mr. Candyman3-Nov-08 0:31
Mr. Candyman3-Nov-08 0:31 
GeneralRe: Interface member's attributes Pin
John Gathogo3-Nov-08 0:34
John Gathogo3-Nov-08 0:34 
AnswerRe: Interface member's attributes Pin
J4amieC3-Nov-08 1:34
J4amieC3-Nov-08 1:34 
AnswerRe: Interface member's attributes Pin
J4amieC3-Nov-08 2:21
J4amieC3-Nov-08 2:21 
Questionto get all services in the machine Pin
prasadbuddhika3-Nov-08 0:13
prasadbuddhika3-Nov-08 0:13 
AnswerRe: to get all services in the machine Pin
John Gathogo3-Nov-08 0:19
John Gathogo3-Nov-08 0:19 
GeneralRe: to get all services in the machine Pin
prasadbuddhika3-Nov-08 0:42
prasadbuddhika3-Nov-08 0:42 
QuestionProgressbar during WebService request Pin
Member 8276132-Nov-08 23:46
Member 8276132-Nov-08 23:46 
AnswerRe: Progressbar during WebService request Pin
#realJSOP2-Nov-08 23:58
professional#realJSOP2-Nov-08 23:58 
QuestionSystem.Convert.ToDouble(stringVal) Pin
dec822-Nov-08 23:28
dec822-Nov-08 23:28 

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.