Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Color Change for MonthRange (Read 3802 times)
malcynn
YaBB Newbies
*
Offline



Posts: 6
Joined: Nov 14th, 2011
Color Change for MonthRange
Nov 15th, 2011 at 3:27pm
Print Post  
I just downloaded this app about 2 days ago and we are beta testing to see if it will work for our solution.

Software: Visual Studio .net 2008 (visual basic)

I am trying to change the color in a MonthRange View but I believe I am missing some declarations as I am getting errors saying that the style2.Style.Brush is not defined nor is the mindfusion.drawing.solidbrush. What am I missing here?

Imports MindFusion
Imports MindFusion.Drawing
Imports MindFusion.Scheduling
Imports MindFusion.Scheduling.winforms

Public Class NewSchedulingForm

Private Sub NewSchedulingFOrm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim style2 As New DateStyle()

style2.From = New DateTime(2011, 11, 18) <- should be an 8 + close bracket...smiley face active)
style2.To = New DateTime(2011, 11, 24)
style2.Style = New Style()
style2.Style.Brush = New MindFusion.Drawing.SolidBrush(Color.PaleGoldenrod)
style2.Priority = 2

Calendar.DayStyles.Add(style2)
End Sub

End class
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Color Change for MonthRange
Reply #1 - Nov 15th, 2011 at 4:05pm
Print Post  
Hi,

Make sure that you are referencing MindFusion.Common.dll. The MindFusion GDI+ wrappers are defined in this assembly.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
malcynn
YaBB Newbies
*
Offline



Posts: 6
Joined: Nov 14th, 2011
Re: Color Change for MonthRange
Reply #2 - Nov 15th, 2011 at 4:27pm
Print Post  
That worked.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint