System.ArgumentOutOfRangeException
HResult=0x80131502
Message=InvalidArgument=“1”的值对于“index”无效。
Arg_ParamName_Name
Source=System.Windows.Forms
StackTrace:
at System.Windows.Forms.ListBox.ObjectCollection.Insert(Int32 index, Object item)
at ML400T.Hyzz.N.ShowRT(String s, Int32 type) in
at ML400T.Hyzz.N.CreateJO(JObject j, Int32 t) in
at ML400T.Forms.NC.ProgrammedStop.btnSubmit_Click(Object sender, EventArgs e) in
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Sunny.UI.UIButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr 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.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at ML400T.Forms.FormPartProgram1.btnItemAdd_Click(Object sender, EventArgs e) in E:\vsproject\ML_400T\ML400T\Forms\FormPartProgram1.cs:line 397
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Sunny.UI.UIButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr 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.Application.Run(Form mainForm)
C# winform 上位机报错:Message=InvalidArgument=“1”的值对于“index”无效。
最新推荐文章于 2024-11-05 10:08:32 发布