Hi,
I have inherited from the ComboboxAutoComplete to create a custom combobox. But the auto complete does not work. Whenever I click on the combo box I get a exception.
System.ArgumentOutOfRangeException was unhandled by user code
Message="Index and length must refer to a location within the string.\rParameter name: length"
Source="mscorlib"
ParamName="length"
StackTrace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Syncfusion.Windows.Forms.Tools.ComboBoxAutoComplete.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at MDIPricer.SpreadSheet.frmSpreadSheetPricer.CaptureTrade() in Y:\fox\foxclient\NewClient\MDIPricer\SpreadSheet\frmSpreadSheetPricer.cs:line 356
at MDIPricer.SpreadSheet.frmSpreadSheetPricer.m_Grid_CellButtonClicked(Object sender, GridCellButtonClickedEventArgs e) in Y:\fox\foxclient\NewClient\MDIPricer\SpreadSheet\frmSpreadSheetPricer.cs:line 345
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnCellButtonClicked(GridCellButtonClickedEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridControlBase.RaiseCellButtonClicked(Int32 rowIndex, Int32 colIndex, Int32 index, GridCellButton button)
thanks
thanvir
>Hi Thanvir,
Thank you for using Syncfusion products.
Could you please include the following code snippet to display the dropdown of ComboBoxAutoComplete control.
[C#]
this.comboBoxAutoComplete1.ParentForm = this;
The following sample illustrates this.
http://websamples.syncfusion.com/samples/Tools.Windows/F63650/main.htmKindly let me know if this helps.
Regards,
Jaya
BrokerCombo.zip