Click here to Skip to main content
15,909,737 members
Home / Discussions / C#
   

C#

 
QuestionGet alphabets of current culture Pin
karthikdeen2-Nov-08 23:05
karthikdeen2-Nov-08 23:05 
QuestionAlphabets of current culture Pin
karthikdeen2-Nov-08 23:04
karthikdeen2-Nov-08 23:04 
Questionthreading Pin
dec822-Nov-08 23:03
dec822-Nov-08 23:03 
AnswerRe: threading Pin
Pedram Behroozi2-Nov-08 23:26
Pedram Behroozi2-Nov-08 23:26 
AnswerRe: threading Pin
Eddy Vluggen2-Nov-08 23:33
professionalEddy Vluggen2-Nov-08 23:33 
AnswerRe: threading Pin
Vimalsoft(Pty) Ltd2-Nov-08 23:53
professionalVimalsoft(Pty) Ltd2-Nov-08 23:53 
AnswerRe: threading Pin
sumit70343-Nov-08 0:06
sumit70343-Nov-08 0:06 
QuestionListView and column header Pin
Sandeep Kalra2-Nov-08 22:45
Sandeep Kalra2-Nov-08 22:45 
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

THE SK(Sandeep Kalra)
I am the One
QuestionLINQ DateTime Format Pin
u2envy122-Nov-08 22:44
u2envy122-Nov-08 22:44 
AnswerRe: LINQ DateTime Format Pin
Guffa2-Nov-08 22:49
Guffa2-Nov-08 22:49 
GeneralRe: LINQ DateTime Format Pin
u2envy122-Nov-08 23:14
u2envy122-Nov-08 23:14 
QuestionCSV FILE Pin
ndeza2-Nov-08 22:21
ndeza2-Nov-08 22:21 
QuestionNewbie threading questions (data exchange + shutdown) Pin
Metal762-Nov-08 21:46
Metal762-Nov-08 21:46 
AnswerRe: Newbie threading questions (data exchange + shutdown) Pin
N a v a n e e t h2-Nov-08 22:25
N a v a n e e t h2-Nov-08 22:25 
GeneralRe: Newbie threading questions (data exchange + shutdown) Pin
Metal762-Nov-08 22:44
Metal762-Nov-08 22:44 
GeneralRe: Newbie threading questions (data exchange + shutdown) Pin
N a v a n e e t h2-Nov-08 23:25
N a v a n e e t h2-Nov-08 23:25 
AnswerRe: Newbie threading questions (data exchange + shutdown) Pin
Nicholas Butler3-Nov-08 0:17
sitebuilderNicholas Butler3-Nov-08 0:17 
GeneralRe: Newbie threading questions (data exchange + shutdown) Pin
Metal763-Nov-08 4:35
Metal763-Nov-08 4:35 
QuestionDataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
David Fleming2-Nov-08 21:27
David Fleming2-Nov-08 21:27 
AnswerRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
David Fleming2-Nov-08 21:47
David Fleming2-Nov-08 21:47 
GeneralRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
Pedram Behroozi2-Nov-08 22:15
Pedram Behroozi2-Nov-08 22:15 
AnswerRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
Patrick Etc.3-Nov-08 17:02
Patrick Etc.3-Nov-08 17:02 
QuestionProblem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 21:26
Matjaz-xyz2-Nov-08 21:26 
AnswerRe: Problem with checkboxes and click() (newbie) Pin
TommyTomToms2-Nov-08 22:20
TommyTomToms2-Nov-08 22:20 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 22:22
Matjaz-xyz2-Nov-08 22:22 

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.