Click here to Skip to main content
15,884,739 members
Home / Discussions / C#
   

C#

 
GeneralRe: Scrolling on mouse down/move Pin
Heath Stewart22-Jan-04 4:24
protectorHeath Stewart22-Jan-04 4:24 
GeneralAdding Column to a ListView Pin
Guinness4Strength21-Jan-04 5:37
Guinness4Strength21-Jan-04 5:37 
GeneralRe: Adding Column to a ListView Pin
Heath Stewart21-Jan-04 5:52
protectorHeath Stewart21-Jan-04 5:52 
GeneralRe: Adding Column to a ListView Pin
Guinness4Strength21-Jan-04 5:57
Guinness4Strength21-Jan-04 5:57 
GeneralRe: Adding Column to a ListView Pin
Heath Stewart21-Jan-04 7:50
protectorHeath Stewart21-Jan-04 7:50 
GeneralRe: Adding Column to a ListView Pin
Guinness4Strength22-Jan-04 8:33
Guinness4Strength22-Jan-04 8:33 
GeneralRe: Adding Column to a ListView Pin
Heath Stewart22-Jan-04 9:26
protectorHeath Stewart22-Jan-04 9:26 
GeneralRe: Adding Column to a ListView Pin
Guinness4Strength22-Jan-04 9:33
Guinness4Strength22-Jan-04 9:33 
I did try using ColumnHeader.Caption with same results, so I decided to use some other string (DateTime.Now.ToString() in this case) to see if it had anything to do with using ColumnHeader text as source. The problem is not the Text, I get the correct Text when I use ColumnHeader[x].ToString(), just the width of the columns are Zero unless i set the width to a positive value. Obviously this is not criticle, but I'd like to have the columns sized to their header, and now its kinda a mission to figure out why it doesn't work.

The following are the settings for the list view:
this.lvResults.AllowColumnReorder = true;
this.lvResults.ContextMenu = this.cmResults;
this.lvResults.Dock = System.Windows.Forms.DockStyle.Fill;
this.lvResults.FullRowSelect = true;
this.lvResults.GridLines = true;
this.lvResults.Location = new System.Drawing.Point(0, 0);
this.lvResults.MultiSelect = false;
this.lvResults.Name = "lvResults";
this.lvResults.Size = new System.Drawing.Size(536, 342);
this.lvResults.TabIndex = 0;
this.lvResults.View = System.Windows.Forms.View.Details;
this.lvResults.SelectedIndexChanged += new System.EventHandler(this.lvResults_SelectedIndexChanged);


And the HeaderStyle is set to Clickable.....
GeneralRe: Adding Column to a ListView Pin
Heath Stewart22-Jan-04 9:39
protectorHeath Stewart22-Jan-04 9:39 
GeneralRe: Adding Column to a ListView Pin
Guinness4Strength22-Jan-04 9:45
Guinness4Strength22-Jan-04 9:45 
GeneralRe: Adding Column to a ListView Pin
Heath Stewart22-Jan-04 9:49
protectorHeath Stewart22-Jan-04 9:49 
GeneralRe: Adding Column to a ListView Pin
Guinness4Strength22-Jan-04 9:57
Guinness4Strength22-Jan-04 9:57 
GeneralUser friendly error Pin
Anonymous21-Jan-04 4:47
Anonymous21-Jan-04 4:47 
GeneralRe: User friendly error Pin
Alex Korchemniy21-Jan-04 4:54
Alex Korchemniy21-Jan-04 4:54 
GeneralRe: User friendly error Pin
Mazdak21-Jan-04 5:04
Mazdak21-Jan-04 5:04 
GeneralRe: User friendly error Pin
eggie521-Jan-04 12:26
eggie521-Jan-04 12:26 
GeneralCustom Panel Pin
ernst wolthaus21-Jan-04 4:24
ernst wolthaus21-Jan-04 4:24 
GeneralRe: Custom Panel Pin
Mazdak21-Jan-04 4:46
Mazdak21-Jan-04 4:46 
GeneralRe: Custom Panel Pin
ernst wolthaus21-Jan-04 7:46
ernst wolthaus21-Jan-04 7:46 
GeneralRe: Custom Panel Pin
Heath Stewart21-Jan-04 5:34
protectorHeath Stewart21-Jan-04 5:34 
GeneralRe: Custom Panel Pin
Jose Fco Bonnin21-Jan-04 5:52
Jose Fco Bonnin21-Jan-04 5:52 
GeneralRe: Custom Panel THANKS! Pin
ernst wolthaus21-Jan-04 7:42
ernst wolthaus21-Jan-04 7:42 
GeneralChange listbox item index Pin
hazzem elrefai20-Jan-04 21:11
hazzem elrefai20-Jan-04 21:11 
GeneralRe: Change listbox item index Pin
hazzem elrefai20-Jan-04 21:35
hazzem elrefai20-Jan-04 21:35 
Questionhow to make fullscreen game animation ? Pin
tonaxxl20-Jan-04 20:57
tonaxxl20-Jan-04 20:57 

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.