g.DrawArc(p, 10.5f, 10.4f, 100.5f, 200.3f, 0, 90);
g.DrawArc(p, (float)p0.X ,(float)p0.Y ,(float)(p1.X-p0.X ) ,(float) (p1.Y-p0.Y ) ,0f,45f);
上面的代码有区别吗 p0和p1是决定矩形的
第一行代码可执行 而第二行代码会出现异常
g.DrawArc(p, (float)p0.X ,(float)p0.Y ,(float)(p1.X-p0.X ) ,(float) (p1.Y-p0.Y ) ,0f,45f);
上面的代码有区别吗 p0和p1是决定矩形的
第一行代码可执行 而第二行代码会出现异常
解决方案 »
- 类里如何调用窗口控件?
- 如何动态显示出parameters节点里的一些属性值,显示到web网页用textbox,然后修改xml里value的值,在保存。
- 有没有c#中catch捕获的异常类型大全 特别关于文件读写的
- C#应用程序中关于MessageBox.Show的问题
- 新手飞过。。。就是要读取一个doc文件到框内的
- combox问题
- 一个简单问题解,如果我解决不了就过不了年啦,大家帮帮忙!!
- 在某行处于编辑模式时怎么绑定数据到DataGrid的模板列中的DropDownList控件上??
- 如何建立独立的线程,急!
- 如何生成setup文件
- datagridview如何添加合计行?
- ase.net我写了个收据插入多条数据怎么根据开票时间的不同把这几个数据提出来分别放到一个GridView中去
未处理 System.ArgumentException
Message="参数无效。"
Source="System.Drawing"
StackTrace:
在 System.Drawing.Graphics.CheckErrorStatus(Int32 status)
在 System.Drawing.Graphics.DrawArc(Pen pen, Single x, Single y, Single width, Single height, Single startAngle, Single sweepAngle)
在 Draw.Form1.tabPage2_MouseMove(Object sender, MouseEventArgs e) 位置 D:\C#程序设计\图形\基本图形类\Draw\Draw\Form1.cs:行号 76
在 System.Windows.Forms.Control.WmMouseMove(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 Draw.Program.Main() 位置 D:\C#程序设计\图形\基本图形类\Draw\Draw\Program.cs:行号 18
在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException:
希望对你有帮助.