Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
Generalwant Ws2.lib & Ws2.dll Pin
Member 10154954-May-04 21:11
Member 10154954-May-04 21:11 
GeneralRe: want Ws2.lib & Ws2.dll Pin
Mike Dimmick5-May-04 1:46
Mike Dimmick5-May-04 1:46 
Generalrecognise assembly as managed code Pin
Aryadip4-May-04 20:27
Aryadip4-May-04 20:27 
GeneralRe: recognise assembly as managed code Pin
CWIZO4-May-04 20:36
CWIZO4-May-04 20:36 
GeneralRe: recognise assembly as managed code Pin
Aryadip4-May-04 22:17
Aryadip4-May-04 22:17 
GeneralRe: recognise assembly as managed code Pin
Mike Dimmick5-May-04 1:48
Mike Dimmick5-May-04 1:48 
GeneralRe: recognise assembly as managed code Pin
Heath Stewart5-May-04 4:03
protectorHeath Stewart5-May-04 4:03 
GeneralListView Column Header Not displayed correctly Pin
Alistair Leslie-Hughes4-May-04 20:24
sussAlistair Leslie-Hughes4-May-04 20:24 
The folllowing code I create a Listview with 550 Columns.
Now when you scroll to the end, the headers arent diaplyed correctly, but the data is OK. It appears there is a limit on the size the Columnn Headers can draw in.

Has anybody else has this problem?
Is there a work around for it?


using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication6
{
///
/// Summary description for Form1.
///

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.ListView listView1;
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

///
/// Clean up any resources being used.
///

protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.listView1 = new System.Windows.Forms.ListView();
this.SuspendLayout();
//
// listView1
//
this.listView1.Location = new System.Drawing.Point(16, 32);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(256, 208);
this.listView1.TabIndex = 0;
this.listView1.View = System.Windows.Forms.View.Details;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.Add(this.listView1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);

}
#endregion

///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.Run(new Form1());
}

private void Form1_Load(object sender, System.EventArgs e)
{

for(int i =0; i < 550; i++)
{
System.Windows.Forms.ColumnHeader colHead = new System.Windows.Forms.ColumnHeader();

colHead.Text = "TQQ" + i;
listView1.Columns.Add(colHead);
}

ListViewItem item1 = new ListViewItem("Test");

for(int i =0; i < 550; i++)
{
item1.SubItems.Add(i.ToString());
}

listView1.Items.Add(item1);
}
}
}
GeneralRe: ListView Column Header Not displayed correctly Pin
Heath Stewart5-May-04 3:35
protectorHeath Stewart5-May-04 3:35 
GeneralAssign special key to operation Pin
Adam Amram4-May-04 18:24
Adam Amram4-May-04 18:24 
GeneralRe: Assign special key to operation Pin
Heath Stewart5-May-04 3:33
protectorHeath Stewart5-May-04 3:33 
GeneralSystem.Reflection.Emit vs System.CodeDom.Compiler.CodeDomProvider and CSharpCodeProvider Pin
benl4-May-04 18:14
benl4-May-04 18:14 
GeneralRe: System.Reflection.Emit vs System.CodeDom.Compiler.CodeDomProvider and CSharpCodeProvider Pin
Heath Stewart5-May-04 3:31
protectorHeath Stewart5-May-04 3:31 
GeneralMobile App Design Pin
MrJJKoolJ4-May-04 16:45
MrJJKoolJ4-May-04 16:45 
GeneralRe: Mobile App Design Pin
Heath Stewart4-May-04 17:41
protectorHeath Stewart4-May-04 17:41 
GeneralCreating a windows forms control with no (or minimal) GUI Pin
Todd Davis4-May-04 15:35
Todd Davis4-May-04 15:35 
GeneralRe: Creating a windows forms control with no (or minimal) GUI Pin
Bill Dean4-May-04 16:09
Bill Dean4-May-04 16:09 
GeneralRe: Creating a windows forms control with no (or minimal) GUI Pin
Todd Davis4-May-04 16:52
Todd Davis4-May-04 16:52 
GeneralRe: Creating a windows forms control with no (or minimal) GUI Pin
Heath Stewart4-May-04 17:38
protectorHeath Stewart4-May-04 17:38 
GeneralSimulating mouse Pin
Member 6910894-May-04 14:02
Member 6910894-May-04 14:02 
GeneralRe: Simulating mouse Pin
Bill Dean4-May-04 15:57
Bill Dean4-May-04 15:57 
GeneralRe: Simulating mouse Pin
Heath Stewart4-May-04 17:29
protectorHeath Stewart4-May-04 17:29 
GeneralRe: Simulating mouse Pin
Heath Stewart4-May-04 17:46
protectorHeath Stewart4-May-04 17:46 
Generalalternative to listbox Pin
mookeroo4-May-04 14:00
mookeroo4-May-04 14:00 
GeneralRe: alternative to listbox Pin
Bill Dean4-May-04 15:50
Bill Dean4-May-04 15:50 

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.