|
I have taken over some code, so I am new to the Planner.NET library.
I have an issue where the instantiated Calendar control (MindFusion.Scheduling.WinForms.Calendar) results in a thread being created with the Highest thread priority. This is subsequently causing massive performance issues (unresponsive, not refreshing correctly) because the thread is hogging processor time.
The thread is created when the object is instantiated in my form's InitializeComponent() method:
Me.m_CalMain = New MindFusion.Scheduling.WinForms.Calendar ' above call resulted in thread created that is running with Highest priority
CType(Me.m_CalMain, System.ComponentModel.ISupportInitialize).BeginInit()
' 'm_CalMain ' Me.m_CalMain.AllowInplaceEdit = False Me.m_CalMain.CurrentView = MindFusion.Scheduling.WinForms.CalendarView.WeekRange Me.m_CalMain.Date = New Date(2006, 11, 1, 0, 0, 0, 0) Me.m_CalMain.DateTimeFormat = CType(resources.GetObject("m_CalMain.DateTimeFormat"), System.Globalization.DateTimeFormatInfo) Me.m_CalMain.Dock = System.Windows.Forms.DockStyle.Fill Me.m_CalMain.EndDate = New Date(2006, 12, 1, 0, 0, 0, 0) Me.m_CalMain.ItemSettings.ShowMoreItemsCue = MindFusion.Scheduling.WinForms.State.Disabled Me.m_CalMain.Location = New System.Drawing.Point(0, 0) Me.m_CalMain.Name = "m_CalMain" Me.m_CalMain.Size = New System.Drawing.Size(624, 529) Me.m_CalMain.TabIndex = 1 Me.m_CalMain.Theme = MindFusion.Scheduling.WinForms.ThemeType.Windows2003 Me.m_CalMain.WeekRangeSettings.DaySettings.Style = CType(resources.GetObject("m_CalMain.WeekRangeSettings.DaySettings.Style"), MindFusion.Scheduling.Style) Me.m_CalMain.WeekRangeSettings.GroupWeekends = MindFusion.Scheduling.WinForms.State.Disabled Me.m_CalMain.WeekRangeSettings.HeaderStyle = MindFusion.Scheduling.WinForms.WeekRangeHeaderStyle.Title Me.m_CalMain.WeekRangeSettings.Style = CType(resources.GetObject("m_CalMain.WeekRangeSettings.Style"), MindFusion.Scheduling.Style) Me.m_CalMain.WeekRangeSettings.TimePeriodHeaderHeight = 32 Me.m_CalMain.WeekRangeSettings.TitleFormat = "MMM yyyy" Me.m_CalMain.WeekRangeSettings.TitleSeparator = " to " Me.m_CalMain.WeekRangeSettings.VisibleRows = 6
CType(Me.m_CalMain, System.ComponentModel.ISupportInitialize).EndInit()
Should this thread be running with this priority? What can I do to lower this thread's priority back to Normal so that the application runs, responds and refreshes corrrectly?
Many thanks.
|