Hallo,
ich bekomme folgende Fehlermeldung, aber ich weiß njicht wo der Fehler herkommt.
Ich habe so die Grafiken eingebunden.
mImages2(1) = Global.Datensammler.My.Resources.Resources._01
'und dann aktiviere ich die Grafik mit
druck_trend.Image = mImages2(16) Kann mir einer bitte Helfen?
Unter Detail ist das zu finden.
System.InvalidOperationException wurde nicht behandelt.
Message="Das Objekt wird bereits an anderer Stelle verwendet."
Source="System.Drawing"
StackTrace:
bei System.Drawing.Image.get_Width()
bei System.Drawing.Image.get_Size()
bei System.Windows.Forms.Label.CalcImageRenderBounds(Image image, _
Rectangle r, ContentAlignment align)
bei System.Windows.Forms.Label.DrawImage(Graphics g, Image image, _
Rectangle r, ContentAlignment align)
bei System.Windows.Forms.Label.OnPaint(PaintEventArgs e)
bei System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs _
e, Int16 layer, Boolean disposeEventArgs)
bei System.Windows.Forms.Control.WmPaint(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.Label.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& _
m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, _
Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei _
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms_
.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 _
dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner( _
Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 _
reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(ApplicationContext context)
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase._
OnRun()
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Do_
ApplicationModel()
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Ru_
n(String[] commandLine)
bei Datensammler.My.MyApplication.Main(String[] Args) in _
17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence _
assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext _
executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException:
Beitrag wurde zuletzt am 21.12.08 um 13:16:33 editiert. |