System.Windows.Forms.ComboBox.FindString(string, int)

Here are the examples of the csharp api class System.Windows.Forms.ComboBox.FindString(string, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: Krypton
Source File: KryptonComboBox.cs
View license
public int FindString(string str, int startIndex)
        {
            return _comboBox.FindString(str, startIndex);
        }

2. Example

Project: SCJMapper-V2
Source File: Main.cs
View license
private void btGrab_Click( object sender, EventArgs e )
    {
      m_AT.ActionMaps.fromXML( rtb.Text );
      m_AT.ReloadCtrl( );
      // JS mapping for the first 3 items can be changed and reloaded from XML
      if ( !String.IsNullOrEmpty( m_AT.ActionMaps.js1 ) ) {
        int i = cbJs1.FindString( m_AT.ActionMaps.js1 );
        if ( i >= 0 ) cbJs1.SelectedIndex = i;
      }
      if ( !String.IsNullOrEmpty( m_AT.ActionMaps.js2 ) ) {
        int i = cbJs2.FindString( m_AT.ActionMaps.js2 );
        if ( i >= 0 ) cbJs2.SelectedIndex = i;
      }
      if ( !String.IsNullOrEmpty( m_AT.ActionMaps.js3 ) ) {
        int i = cbJs3.FindString( m_AT.ActionMaps.js3 );
        if ( i >= 0 ) cbJs3.SelectedIndex = i;
      }
      btGrab.BackColor = btClear.BackColor; // neutral again
      btDump.BackColor = btClear.BackColor; // neutral again
    }

3. Example

Project: KeeThief
Source File: EcasUtil.cs
View license
public static bool UpdateDialog(EcasObjectType objType, ComboBox cmbTypes,
			DataGridView dgvParams/n ..... /n //View Source file for more details /n }

4. Example

View license
protected override void OnKeyPress(KeyPressEventArgs e)
        {
            int idx = -1;
        /n ..... /n //View Source file for more details /n }