all groups > visual studio .net general > march 2004 >
You're in the

visual studio .net general

group:

What is wrong with MSACAL???


What is wrong with MSACAL??? mklapp
3/26/2004 8:41:07 AM
visual studio .net general: Hello

I have a .NET App that periodically, for no apparent reason at all, loses its MSACAL reference. Now it has a reference to AXInterop.MSACAL.dll and Interop.MSACAL.dll. The problem now, is that it lost its reference during the setup build (My kingdom for a stable and robust IDE)
One of the forms has a calendar control and when it is executed, the "Class not defined" error pops up
I try to re-add the reference, but there is no entry for Microsoft Calendar Control. I find no copy of MSACAL.ocx (or dll)

Questions
Why isn't a reference to AXInterop.MSACAL.dll enough for a calendar
Why can't VS.NET 2003 hold on to its references (I mean, come on)
Why is there no MSACAL on my machine (there is an MSCAL.ocx)
How can I make a calendar work on a form so it stays on the form
RE: What is wrong with MSACAL??? timhuang NO[at]SPAM online.microsoft.com
3/29/2004 7:32:15 AM
Hello,

Thanks for your post. As I understand, the problem you are facing is that
the references to the Calenar Control may be removed in your project.
Please correct me if there is any misunderstanding. I now share the
following information with you:

1. I created a new .NET WinForm application which uses Calendar Control 8.0
and it works properly on my side. After adding the Calendar Control to your
project, please make sure that the "Copy Local" properties of referenced
AxMSACAL and MSACAL are set to True.

2. >> I try to re-add the reference, but there is no entry for Microsoft
Calendar Control. I find no copy of MSACAL.ocx (or dll).

I suggest that you can perform the following steps to add Calendar Control
to your project:

a. Make sure you have MSCAL.OCX registered on your system, otherwise we are
not able to use it and may receive "Class not defined" error. You can
manually register it with the following console command:
regsvr32 MSCAL.OCX

b. Open your project in VS .NET 2003 IDE.

c. Select the menu "Tools" -> "Add/Remove Toolbox Items...".

d. Choose "COM Components" panel, and check "Calendar Control". If it does
not listed in COM Components, you can click "Browse" button and open the
MSCAL.OCX file in your <Windows Folder>\System32 folder.

e. Open a form, and drag-n-drop a Calendar Control in Toolbox to the form.

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button