Home

SpeakComputers.com | Text-to-Speech Software

Natural sounding TTS voice support | Cepstral TTS voices | Text to MP3 | Natural Readers

Text to Speech Software Text to Speech Voices SpeakComputer Text to Speech Software

UltraComboEditor Control.

The Infragistics UltraComboEditor control offers the same functionality as theWindows ComboBox but does not have the simple dropdown style. The control does include the optional left and right buttons that can be used to update databases, confirm entries etc. The optional left and right buttons also include the SpinEditorButton for item navigation. 

Infragistics.Win.UltraWinEditors.UltraComboEditor

Namespace: Infragistics.Win.UltraWinEditors
Assembly: Infragistics2.Win.UltraWinEditors.v6.3.dll

using Infragistics.Win.UltraWinEditors;
Calling: Infragistics.Win.UltraWinEditors.UltraComboEditor

Creating a new Infragistics.Win.UltraWinEditors.UltraComboEditor control.
 Infragistics.Win.UltraWinEditors.UltraComboEditor ultraComboEditor1 = new  Infragistics.Win.UltraWinEditors.UltraComboEditor();

Adding the UltraComboEditor control to a Windows form.
this.Controls.Add(ultraComboEditor1);

Placing the UltraComboEditor on the form at a specific location.
ultraComboEditor1.Location = new Point(50, 50);

Assigning a text value to a UltraComboEditor control.
ultraComboEditor1.Text = "Enter";

Assigning a value Change event to the UltraComboEditor control.
ultraComboEditor1.ValueChanged+=new EventHandler(ultraComboEditor1_ValueChanged);

Responding to the UltraComboEditor ValueChanged event.
private void ultraComboEditor1_ValueChanged(object sender, EventArgs e)
{
//The MessageBox is part of the System.Windows.Forms namespace.
MessageBox.Show("HelloWorld");
}

Changing the background color of the UltraComboEditor control.
ultraComboEditor1.Appearence.BackColor = System.Drawing.Color.Red;

To disable the UltraComboEditor control.
ultraComboEditor1.Enabled = false;
Here the UltraComboEditor control is still visible (partially faded) but will not respond to any events. To re-enable the UltraComboEditor control you would set the Enabled property to true. When adding the UltraComboEditor control the default setting is for the control to be Enabled.

The UltraComboEditor control from Infragistics includes preloaded style formats including XP style, Visual Studio style, Office2003 Style and Office2007 style. You can also create your own appearence styles by editing the appearence properties.

To change the UltraComboEditor style you simply change the display style property.

UltraComboEditor.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.Office2007;

To add items to the UltraComboEditor,you can add object data values and Infragistic.Win.ValueListItems.

for (int i = 0; i < 100; i++) { this.ultraComboEditor1.Items.Add(i.ToString()); }

Each item that is added to the UltraComboEditor can have an image object attached to it.

Note: The UltraComboEditor lacks the Autocomplete properties that are included with the System.Windows.Forms.ComboBox control. It also lacks the simple dropdownstyle property.

Creating the SpinEditorButton click event.
this.ultraComboEditor1.EditorSpinButtonClick +=new Infragistics.Win.UltraWinEditors.SpinButtonClickEventHandler(ultraComboEditor1_EditorSpinButtonClick);

Responding to the SpinEditorButton click event.
private void ultraComboEditor1_EditorSpinButtonClick(object sender, Infragistics.Win.UltraWinEditors.SpinButtonClickEventArgs e) { switch (e.ButtonType) { case Infragistics.Win.UltraWinEditors.SpinButtonItem.PreviousItem: //Move to previous item break; case Infragistics.Win.UltraWinEditors.SpinButtonItem.NextItem: //Move to next item break; } }
Top of page
Text to Speech Speech synthesis Software TTS Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
About Privacy Policy TTS Resouces
Free Text to Speech software
Free Text to Speech Software