Print Page | Close Window

2010 theme in calendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=18609
Printed Date: 02 June 2025 at 12:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 2010 theme in calendar
Posted By: kaliand
Subject: 2010 theme in calendar
Date Posted: 01 July 2011 at 2:39pm
hi,

anyone can tell me how must be implemented 2010 (blue, silver or black) theme in a calendar control in vb.net windows form?

i bought 2 developer licence of the suite, but in the .net example doesn't exists this feature.

thanks!!



Replies:
Posted By: SuperMario
Date Posted: 06 July 2011 at 1:38pm
It is the same as in the vb6 sample, here is the C# sample modified:

    public XtremeCalendarControl.CalendarGlobalSettings CalendarGlobalSettings;

public frmMain()
{
//
// Required for Windows Form Designer support
//
Instance = this;
InitializeComponent();
InitializeControls();

      CalendarGlobalSettings = new XtremeCalendarControl.CalendarGlobalSettings();
      CalendarGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Blue.ini");
      wndCalendarControl.VisualTheme = CalendarTheme.xtpCalendarThemeResource;

//
// TODO: Add any constructor code after InitializeComponent call
//
}

public string StylesPath()
{
string strExePath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);

if (System.IO.Directory.Exists(strExePath + "\\..\\..\\..\\..\\Styles"))
return strExePath + "\\..\\..\\..\\..\\Styles\\";

if (System.IO.Directory.Exists(strExePath + "\\..\\..\\..\\..\\..\\Styles"))
return strExePath + "\\..\\..\\..\\..\\..\\Styles\\";

if (System.IO.Directory.Exists(strExePath + "\\..\\..\\..\\..\\..\\..\\Styles"))
return strExePath + "\\..\\..\\..\\..\\..\\..\\Styles\\";

return strExePath + "\\..\\..\\..\\Styles\\";
}



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net