나는 System.Drawing.Pen _pen
있습니다.GDI + a에서 "매개 변수가 유효하지 않습니다." 펜 설정에.
System.ArgumentException
Message="Parameter is not valid."
Source="System.Drawing" - System.Drawing.dll
StackTrace:
at System.Drawing.Pen.set_Width(Single value)
at MyProject.ctlPanneauGraphique.CustomLine.set_BorderWidth(Int32 value) in
....
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at MySolution.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
어떤 이유 : 일부 반복에
은 나에게주는_pen.Width = 3
을 설정하는 것입니다?
예, 저는 Pen 변수를 처리합니다. 아마도 당신은 이유가있을 것입니다. – serhio