Click here to Skip to main content
15,912,294 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help using an abstract WebMethod Pin
S. Senthil Kumar10-Jul-05 3:37
S. Senthil Kumar10-Jul-05 3:37 
GeneralRe: Need help using an abstract WebMethod Pin
Snowblind3710-Jul-05 6:14
Snowblind3710-Jul-05 6:14 
QuestionVideo preview from external device - how to? Pin
Gal Shadeck9-Jul-05 3:22
Gal Shadeck9-Jul-05 3:22 
GeneralRedefining Enums Pin
Chris Davies9-Jul-05 2:59
Chris Davies9-Jul-05 2:59 
GeneralRe: Redefining Enums Pin
S. Senthil Kumar9-Jul-05 4:02
S. Senthil Kumar9-Jul-05 4:02 
GeneralRe: Redefining Enums Pin
Uwe Keim9-Jul-05 8:01
sitebuilderUwe Keim9-Jul-05 8:01 
GeneralRe: Redefining Enums Pin
Chris Davies9-Jul-05 9:19
Chris Davies9-Jul-05 9:19 
GeneralListView Column Width resize Pin
ARBR9-Jul-05 2:01
ARBR9-Jul-05 2:01 
I made a ListView control on my program and I can see some code like this...
I want to change the size of a Column of ListView control when I resize my program widnows.

InitializeComponent()......
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.listView1.Alignment = System.Windows.Forms.ListViewAlignment.Default;
this.listView1.BackColor = System.Drawing.Color.Gainsboro;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,this.columnHeader2,this.columnHeader3});
this.listView1.FullRowSelect = true;
this.listView1.GridLines = true;
this.listView1.Location = new System.Drawing.Point(4, 120);
this.listView1.Name = "listView1";
this.listView1.Scrollable = false;
this.listView1.Size = new System.Drawing.Size(190, 50);
this.listView1.TabIndex = 5;
this.listView1.View = System.Windows.Forms.View.Details;
//
// columnHeader1
//
this.columnHeader1.Text = "Name";
this.columnHeader1.Width = 70;
//
// columnHeader2
//
this.columnHeader2.Text = "Grade";
this.columnHeader2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.columnHeader2.Width = 40;
//
// columnHeader3
//
this.columnHeader3.Text = "Battle";
this.columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.columnHeader3.Width = 100;

and...my_SizeChanged(object sender, System.EventArgs e)
{
this.columnHeader3.Width=this.listView1.Width-80;
this.listView1.Columns.Clear();
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,this.columnHeader2,this.columnHeader3});
}

what must I code above line?
Help me please.


I am going to make it. complete the vision.
GeneralRe: ListView Column Width resize Pin
mav.northwind9-Jul-05 20:52
mav.northwind9-Jul-05 20:52 
GeneralSet up problem Pin
ksanju10009-Jul-05 1:30
ksanju10009-Jul-05 1:30 
GeneralListView - Columns collection design-time question Pin
iliyang8-Jul-05 23:51
iliyang8-Jul-05 23:51 
QuestionPass byte array? Pin
Dominik Reichl8-Jul-05 23:08
Dominik Reichl8-Jul-05 23:08 
AnswerRe: Pass byte array? Pin
User 20930738-Jul-05 23:25
User 20930738-Jul-05 23:25 
GeneralRe: Pass byte array? Pin
S. Senthil Kumar8-Jul-05 23:51
S. Senthil Kumar8-Jul-05 23:51 
AnswerRe: Pass byte array? Pin
S. Senthil Kumar8-Jul-05 23:50
S. Senthil Kumar8-Jul-05 23:50 
GeneralRe: Pass byte array? Pin
User 20930739-Jul-05 0:27
User 20930739-Jul-05 0:27 
GeneralRe: Pass byte array? Pin
S. Senthil Kumar9-Jul-05 0:38
S. Senthil Kumar9-Jul-05 0:38 
GeneralRe: Pass byte array? Pin
Dominik Reichl9-Jul-05 0:46
Dominik Reichl9-Jul-05 0:46 
QuestionCreate executable? Pin
Expert Coming8-Jul-05 21:43
Expert Coming8-Jul-05 21:43 
AnswerRe: Create executable? Pin
User 20930738-Jul-05 23:21
User 20930738-Jul-05 23:21 
GeneralRe: Create executable? Pin
Expert Coming9-Jul-05 9:38
Expert Coming9-Jul-05 9:38 
GeneralRe: Create executable? Pin
Mathew Hall9-Jul-05 23:13
Mathew Hall9-Jul-05 23:13 
GeneralRe: Create executable? Pin
delfme15-Jul-05 13:25
delfme15-Jul-05 13:25 
Generalneed help regarding adding components in C# and VC (Managed) Pin
arusmemon8-Jul-05 20:36
arusmemon8-Jul-05 20:36 
GeneralRe: need help regarding adding components in C# and VC (Managed) Pin
Rob Graham9-Jul-05 6:10
Rob Graham9-Jul-05 6:10 

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.