Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: textboxes Pin
Christian Graus11-Jul-05 13:05
protectorChristian Graus11-Jul-05 13:05 
GeneralA question about ListBoxes... Pin
Lord Kixdemp10-Jul-05 10:57
Lord Kixdemp10-Jul-05 10:57 
Generalshallow/deep copy-- I give up...... Pin
...---...10-Jul-05 6:42
...---...10-Jul-05 6:42 
GeneralRe: shallow/deep copy-- I give up...... Pin
S. Senthil Kumar10-Jul-05 6:50
S. Senthil Kumar10-Jul-05 6:50 
GeneralRe: shallow/deep copy-- I give up...... Pin
leppie11-Jul-05 0:54
leppie11-Jul-05 0:54 
GeneralRe: shallow/deep copy-- I give up...... Pin
S. Senthil Kumar11-Jul-05 1:25
S. Senthil Kumar11-Jul-05 1:25 
GeneralWindows services.. Please Help me urgently Pin
Zeeshan Gulzar10-Jul-05 6:35
Zeeshan Gulzar10-Jul-05 6:35 
GeneralListView column resize broken column Pin
ARBR10-Jul-05 4:53
ARBR10-Jul-05 4:53 
I have a ListView Control and I make its width bigger in Resize() Event...
when it get bigger, it gets over the space of my program has before Resizing.
And the last column has broken of its right that over the line of newly added space of my program.
right side of last column is cutted and thown away. but the detailed item is shown precise.
I tried varous value for columnHeader3.Width but it broken again and again.
Of course, I don't mistake the order of resizing the listView and the panel that has it.
Please give me a hand for the solution.

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.listView1.columns[2].Width=-2;
this.columnHeader3.Width=-2;
}


I am going to make it. complete the vision.
GeneralC# XML Pin
Newbie_Toy10-Jul-05 4:10
Newbie_Toy10-Jul-05 4:10 
GeneralRe: C# XML Pin
DavidNohejl10-Jul-05 4:25
DavidNohejl10-Jul-05 4:25 
QuestionHow can we let a windows service sending a message ? Pin
Blue_Skye10-Jul-05 0:44
Blue_Skye10-Jul-05 0:44 
AnswerRe: How can we let a windows service sending a message ? Pin
S. Senthil Kumar10-Jul-05 3:23
S. Senthil Kumar10-Jul-05 3:23 
GeneralRe: How can we let a windows service sending a message ? Pin
Blue_Skye10-Jul-05 6:30
Blue_Skye10-Jul-05 6:30 
GeneralOpen File Dialog Pin
Expert Coming9-Jul-05 23:44
Expert Coming9-Jul-05 23:44 
GeneralRe: Open File Dialog Pin
Tomas Petricek10-Jul-05 0:00
Tomas Petricek10-Jul-05 0:00 
GeneralRe: Open File Dialog Pin
Dave Kreskowiak10-Jul-05 8:38
mveDave Kreskowiak10-Jul-05 8:38 
GeneralGIF Images Pin
Expert Coming9-Jul-05 23:22
Expert Coming9-Jul-05 23:22 
GeneralRe: GIF Images Pin
Expert Coming9-Jul-05 23:42
Expert Coming9-Jul-05 23:42 
GeneralCOM in C# Pin
pakFari9-Jul-05 19:19
pakFari9-Jul-05 19:19 
GeneralRe: COM in C# Pin
Denevers10-Jul-05 2:34
Denevers10-Jul-05 2:34 
GeneralRe: COM in C# Pin
pakFari10-Jul-05 7:33
pakFari10-Jul-05 7:33 
GeneralRe: COM in C# Pin
mav.northwind10-Jul-05 7:41
mav.northwind10-Jul-05 7:41 
GeneralForm not behaving in a panel that's in a panel Pin
SirKnight9-Jul-05 17:38
SirKnight9-Jul-05 17:38 
GeneralRe: Form not behaving in a panel that's in a panel Pin
Luis Alonso Ramos10-Jul-05 0:30
Luis Alonso Ramos10-Jul-05 0:30 
GeneralRe: Form not behaving in a panel that's in a panel Pin
SirKnight10-Jul-05 7:39
SirKnight10-Jul-05 7:39 

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.