|
Hi again,
I'm trying to create a custom theme, but I always get an error when I try to apply it when the current view is Timeline (it works for List view, though).
This is the exception I get:
[code]System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="Calendar" StackTrace: at MindFusion.Scheduling.WinForms.Calendar.xad5e64ac35a54d10(Object xe0292b9ed559da7d, ScrollBarDrawArgs xfbf34718e704c6bc) at MindFusion.Controls.ScrollBar.OnDraw(ScrollBarDrawArgs e) at MindFusion.Controls.ScrollBar.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) 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(Int32 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) at Test.Program.Main() in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\WinTest\Test\Program.cs:line 17 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() [/code]
[url=https://www.eduing.net/files/Calendartheme.zip]Here[/url] is an example test project.
Am I doing anything wrong here?
Thanks, Darko
|