Advertisement
Advertisement
| 04.28.2008 at 12:29PM PDT, ID: 23359913 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
private void myListView1_KeyDown( object sender, KeyEventArgs e )
{
int index;
if ( myListView1.SelectedIndices.Count == 0 ) // if there is no items selected, do nothing; or whatever you want
return;
index = myListView1.SelectedIndices[ 0 ];
if ( e.KeyCode == Keys.Up )
{
if ( index > 0 ) // you should check the index to reaching out of bounds
myListView1.Items[ index - 1 ].Selected = true;
}
else if ( e.KeyCode == Keys.Down )
if ( index < myListView1.Items.Count - 1 )
myListView1.Items[ index + 1 ].Selected = true;
}
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.06.2008 at 07:58PM PDT, ID: 21512867 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: |
namespace ListView_Focus
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose( bool disposing )
{
if( disposing && ( components != null ) )
{
components.Dispose();
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem( "One" );
System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem( "Two" );
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem( "Three" );
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem( "Four" );
System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem( "Five" );
System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem( "Six" );
this.listView1 = new System.Windows.Forms.ListView();
this.SuspendLayout();
//
// listView1
//
this.listView1.Items.AddRange( new System.Windows.Forms.ListViewItem[] {
listViewItem1,
listViewItem2,
listViewItem3,
listViewItem4,
listViewItem5,
listViewItem6} );
this.listView1.Location = new System.Drawing.Point( 12, 12 );
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size( 121, 97 );
this.listView1.TabIndex = 0;
this.listView1.UseCompatibleStateImageBehavior = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size( 292, 266 );
this.Controls.Add( this.listView1 );
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout( false );
}
#endregion
private System.Windows.Forms.ListView listView1;
}
}
|
| 05.07.2008 at 06:10AM PDT, ID: 21515972 |
| 05.07.2008 at 12:21PM PDT, ID: 21519526 |
| 07.15.2008 at 03:44AM PDT, ID: 22005571 |