Hello Guillermo Vilas,
I'm trying to use the Janus combobox wrapped using this example.
With the combobox Janus me back the following error:
InvalidCastException
Impossibile eseguire il cast di oggetti di tipo 'System.Object[]' sul tipo 'MicroFour.StrataFrame.UI.Windows.Forms.ComboBoxItem[]'.
Source : MicroFour StrataFrame Janus Wrapper
Stack Trace:
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.PushDataSourceItemsToComboDisplay() in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 544
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.PopulateComboBox() in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 502
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.set_ValueMember(String value) in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 379
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.SetDataSource(Object DataSource, String DisplayMember, String ValueMember)
in MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateComboFromBusinessObject(IListControl lstControl, Object[] Parameters)
in MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateCombo(Control lstControl, Object[] Parameters)
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.PopulateCombo(Object[] Parameters) in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 918
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.Requery() in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 899
in MicroFour.StrataFrame.UI.Windows.Forms.JanusControls.UIComboBox.InitializeObject() in C:\Users\Fabrizio\Desktop\MicroFour StrataFrame Janus Wrapper\Janus\UIComboBox.vb:riga 883
in MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
in MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
in System.Windows.Forms.Form.OnCreateControl()
in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
in System.Windows.Forms.Control.CreateControl()
in System.Windows.Forms.Control.WmShowWindow(Message& m)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ContainerControl.WndProc(Message& m)
in System.Windows.Forms.Form.WmShowWindow(Message& m)
in System.Windows.Forms.Form.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
in System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
If I use combobox StrataFrame everything works regularly.
You can help me?
Thank you
Fabrizio
P.S. Janus gridEx to explain to you my problem in the future