Here are the examples of the csharp api class System.Windows.Forms.ComboBox.FindStringExact(string, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
8 Examples
0
1. Example
View licensepublic int FindStringExact(string str, int startIndex) { return _comboBox.FindStringExact(str, startIndex); }
0
2. Example
View licenseprivate void tvwCondition_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { /n ..... /n //View Source file for more details /n }
0
3. Example
View licensepublic void ApplyParam(SerialTerminalParam param, SerialTerminalSettings settings) { _te/n ..... /n //View Source file for more details /n }
0
4. Example
View licenseprivate void configComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { selectedConfig = project.Configs[(string)configComboBox.SelectedItem]; RuntimeFramework framework = selectedConfig.RuntimeFramework; RuntimeType runtime = RuntimeType.Any; Version version = RuntimeFramework.DefaultVersion; if (framework != null) { runtime = framework.Runtime; version = framework.ClrVersion; } int index = runtimeComboBox.FindStringExact(runtime.ToString(), 0); if ( index < 0 ) index = 0; runtimeComboBox.SelectedIndex = index; if (framework == null || framework.AllowAnyVersion) runtimeVersionComboBox.SelectedIndex = 0; else runtimeVersionComboBox.Text = version.ToString(); applicationBaseTextBox.Text = selectedConfig.RelativeBasePath; configFileTextBox.Text = selectedConfig.ConfigurationFile; switch ( selectedConfig.BinPathType ) { case BinPathType.Auto: autoBinPathRadioButton.Checked = true; break; case BinPathType.Manual: manualBinPathRadioButton.Checked = true; privateBinPathTextBox.Text = selectedConfig.PrivateBinPath; break; default: noBinPathRadioButton.Checked = true; break; } assemblyListBox_Populate(); }
0
5. Example
View licenseprivate void configComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { selectedConfig = project.Configs[(string)configComboBox.SelectedItem]; RuntimeFramework framework = selectedConfig.RuntimeFramework; RuntimeType runtime = RuntimeType.Any; Version version = RuntimeFramework.DefaultVersion; if (framework != null) { runtime = framework.Runtime; version = framework.ClrVersion; } int index = runtimeComboBox.FindStringExact(runtime.ToString(), 0); if ( index < 0 ) index = 0; runtimeComboBox.SelectedIndex = index; if (framework == null || framework.AllowAnyVersion) runtimeVersionComboBox.SelectedIndex = 0; else runtimeVersionComboBox.Text = version.ToString(); applicationBaseTextBox.Text = selectedConfig.RelativeBasePath; configFileTextBox.Text = selectedConfig.ConfigurationFile; switch ( selectedConfig.BinPathType ) { case BinPathType.Auto: autoBinPathRadioButton.Checked = true; break; case BinPathType.Manual: manualBinPathRadioButton.Checked = true; privateBinPathTextBox.Text = selectedConfig.PrivateBinPath; break; default: noBinPathRadioButton.Checked = true; break; } assemblyListBox_Populate(); }
0
6. Example
View licenseprivate void configComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { selectedConfig = project.Configs[(string)configComboBox.SelectedItem]; RuntimeFramework framework = selectedConfig.RuntimeFramework; RuntimeType runtime = RuntimeType.Any; Version version = RuntimeFramework.DefaultVersion; if (framework != null) { runtime = framework.Runtime; version = framework.ClrVersion; } int index = runtimeComboBox.FindStringExact(runtime.ToString(), 0); if ( index < 0 ) index = 0; runtimeComboBox.SelectedIndex = index; if (framework == null || framework.AllowAnyVersion) runtimeVersionComboBox.SelectedIndex = 0; else runtimeVersionComboBox.Text = version.ToString(); applicationBaseTextBox.Text = selectedConfig.RelativeBasePath; configFileTextBox.Text = selectedConfig.ConfigurationFile; switch ( selectedConfig.BinPathType ) { case BinPathType.Auto: autoBinPathRadioButton.Checked = true; break; case BinPathType.Manual: manualBinPathRadioButton.Checked = true; privateBinPathTextBox.Text = selectedConfig.PrivateBinPath; break; default: noBinPathRadioButton.Checked = true; break; } assemblyListBox_Populate(); }
0
7. Example
View licenseprivate void configComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { selectedConfig = project.Configs[(string)configComboBox.SelectedItem]; RuntimeFramework framework = selectedConfig.RuntimeFramework; RuntimeType runtime = RuntimeType.Any; Version version = RuntimeFramework.DefaultVersion; if (framework != null) { runtime = framework.Runtime; version = framework.ClrVersion; } int index = runtimeComboBox.FindStringExact(runtime.ToString(), 0); if ( index < 0 ) index = 0; runtimeComboBox.SelectedIndex = index; if (framework == null || framework.AllowAnyVersion) runtimeVersionComboBox.SelectedIndex = 0; else runtimeVersionComboBox.Text = version.ToString(); applicationBaseTextBox.Text = selectedConfig.RelativeBasePath; configFileTextBox.Text = selectedConfig.ConfigurationFile; switch ( selectedConfig.BinPathType ) { case BinPathType.Auto: autoBinPathRadioButton.Checked = true; break; case BinPathType.Manual: manualBinPathRadioButton.Checked = true; privateBinPathTextBox.Text = selectedConfig.PrivateBinPath; break; default: noBinPathRadioButton.Checked = true; break; } assemblyListBox_Populate(); }
0
8. Example
View licenseprivate void lstObligations_SelectedIndexChanged(object sender, System.EventArgs e) { if( index/n ..... /n //View Source file for more details /n }