![]() |
Problem attaching calendar to datepicker |
Post Reply ![]() |
Author | |
glennj ![]() Newbie ![]() Joined: 07 February 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() Posted: 15 May 2006 at 12:36pm |
I'm running vb.net application and have the calendar control and datepicker control on the same form. I have added code in the form's load subroutine to attach the calendar to the date picker but it errors when it comes to running the program Error is "Additional information: Specified cast is not valid.". It runs fine without the attachtocalendar command... I'm confused, can anyone help? Code is
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Note that AxOOO classes are VB.NET wrappers on top of OCX objects. So far, to fix up your code, just change the last line to the:
-- WBR, Serge |
|
![]() |
|
glennj ![]() Newbie ![]() Joined: 07 February 2006 Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
Ah yes, that works perfect! Thanks for your prompt help... |
|
![]() |
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 |