Noch ne Frage am schluss
Hab nen eigenen Cursor den hab ich in meine resurcen rein aber irgentwie läst sich der nit aufrufen mit
Steh ma wieder aufen schlauch hab den cursor in den auch da wo er angegeben is
-.-
Hab nen eigenen Cursor den hab ich in meine resurcen rein aber irgentwie läst sich der nit aufrufen mit
VB.NET-Quellcode
- My.Resources.blabla
- 'Verwenden wolte ich das so '
- Me.Cursor = New Cursor(My.Application.Info.DirectoryPath & "/buerste.cur")
- 'Oder SO'
- Me.Cursor = New Cursor(My.Resources.buerste)
- 'und dann der Memory Fehler -.-
- 'System.OutOfMemoryException wurde nicht behandelt.
- Message="Nicht genügend Speicher verfügbar, um das Programm weiter auszuführen."
- Source="System.Windows.Forms"
- StackTrace:
- bei System.Windows.Forms.UnsafeNativeMethods.IPersistStream.Load(IStream pstm)
- bei System.Windows.Forms.Cursor.LoadPicture(IStream stream)
- bei System.Windows.Forms.Cursor..ctor(String fileName)
- bei SampleClient.Tammy.PictureBox2_MouseMove(Object sender, MouseEventArgs e) in C:\Users\SHTH\***\***\***\***\****\***.vb:Zeile 49.
- bei System.Windows.Forms.Control.WmMouseMove(Message& m)
- bei System.Windows.Forms.Control.WndProc(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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
- bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
- bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
- bei SampleClient.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
- bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
- bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
- bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
- bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
- bei System.Threading.ThreadHelper.ThreadStart()
- InnerException:
- '
- 'desweiteren hier gefunden
- Using ms As New MemoryStream(My.Application.Info.DirectoryPath & "/buerste.cur")
- Me.Cursor = New Cursor(ms)
- End Using
- Neuer Fehler
- 'System.InvalidCastException wurde nicht behandelt.
- Message="Ungültige Konvertierung von der Zeichenfolge C:\Users\SHTH\***\*** in Typ Integer."
- Source="Microsoft.VisualBasic"
- StackTrace:
- bei Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
- bei SampleClient.Tammy.PictureBox2_MouseMove(Object sender, MouseEventArgs e) in C:\Users\SHTH\****\***\***\***\***\***.vb:Zeile 51.
- bei System.Windows.Forms.Control.WmMouseMove(Message& m)
- bei System.Windows.Forms.Control.WndProc(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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
- bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
- bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
- bei SampleClient.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
- bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
- bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
- bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
- bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
- bei System.Threading.ThreadHelper.ThreadStart()
- InnerException: System.FormatException
- Message="Die Eingabezeichenfolge hat das falsche Format."
- Source="Microsoft.VisualBasic"
- StackTrace:
- bei Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
- bei Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
- InnerException:
- '
Steh ma wieder aufen schlauch hab den cursor in den auch da wo er angegeben is
-.-