Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - 2010 theme in calendar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

2010 theme in calendar

 Post Reply Post Reply
Author
Message
kaliand View Drop Down
Groupie
Groupie


Joined: 15 December 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote kaliand Quote  Post ReplyReply Direct Link To This Post Topic: 2010 theme in calendar
    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!!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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\\";
}
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.