![]() |
2010 theme in calendar |
Post Reply
|
| Author | |
kaliand
Groupie
Joined: 15 December 2010 Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
Topic: 2010 theme in calendarPosted: 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!! |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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\\"; } |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |