I appologize for my last comment which was incorrect. The version 9 control that I used (probably shipped with Office 2000) is, in
fact, an ActiveX control and may be added to web forms. I attempted to do so and it worked fine for me.
Again, I'm sorry about that incorrect post.
If it's for a web app, then I'm just curious why your not just using System.Web.UI.WebControls.Calendar?
As for your question about the component being disabled, I'm not sure why that would be. You can, however, add the component
manually to a web form without the aid of the toolbox.
Just add an object tag such as the following. You may have to adjust the classid and some or all of the PARAM tags to match your
version of the control.
This is what the component serialized into my HTML file when I dragged it from the toolbox:
<OBJECT style="Z-INDEX: 101; LEFT: 224px; POSITION: absolute; TOP: 184px"
classid=clsid:8E27C92B-1264-101C-8A2F-040224009C02 VIEWASTEXT>
<PARAM NAME="_Version" VALUE="524288">
<PARAM NAME="_ExtentX" VALUE="7620">
<PARAM NAME="_ExtentY" VALUE="5080">
<PARAM NAME="_StockProps" VALUE="1">
<PARAM NAME="BackColor" VALUE="-2147483633">
<PARAM NAME="Year" VALUE="2005">
<PARAM NAME="Month" VALUE="7">
<PARAM NAME="Day" VALUE="11">
<PARAM NAME="DayLength" VALUE="1">
<PARAM NAME="MonthLength" VALUE="2">
<PARAM NAME="DayFontColor" VALUE="0">
<PARAM NAME="FirstDay" VALUE="1">
<PARAM NAME="GridCellEffect" VALUE="1">
<PARAM NAME="GridFontColor" VALUE="10485760">
<PARAM NAME="GridLinesColor" VALUE="-2147483632">
<PARAM NAME="ShowDateSelectors" VALUE="-1">
<PARAM NAME="ShowDays" VALUE="-1">
<PARAM NAME="ShowHorizontalGrid" VALUE="-1">
<PARAM NAME="ShowTitle" VALUE="-1">
<PARAM NAME="ShowVerticalGrid" VALUE="-1">
<PARAM NAME="TitleFontColor" VALUE="10485760">
<PARAM NAME="ValueIsNull" VALUE="0">
</OBJECT>
GL
--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"TnCoder" <Tn*****@discussions.microsoft.com> wrote in message news:D4**********************************@microsof t.com...
Dave;
I am trying to add Calendar Control 8.0 which is an ocx. Is Calendar
Control 9.0 a dll? If so where can I get it?
Thanks
Dale
"Dave" wrote:
The control may only be added to System.Windows.Forms.Form or System.Windows.Forms.UserControl derived classes.
** Web forms cannot use the control **
If you are attempting to add it to a WinForms app, then I'm not sure why it's still disabled. I tried my instructions out and it
worked fine for me.
Sorry if I couldn't help u
--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"TnCoder" <Tn*****@discussions.microsoft.com> wrote in message news:79**********************************@microsof t.com... > Dave;
>
> Thanks for the help, but I did exactly as you instructed and the Calendar
> component is still not enabled. It is showing in the toolbox, but faded and I
> cannot add it to a form. Do you have any other ideas?
>
> Thanks again
>
>
> "Dave" wrote:
>
>> Open the toolbox, right-mouse click and select "Add/Remove Items...".
>> When the "Customize Toolbox" dialog opens select the "COM Components" tab.
>> Browse to the "Calendar Control 9.0" component (or whichever component your attempting to add).
>> Check the box and click "OK".
>>
>> When the dialog closes, the component will appear in the toolbox under the selected tab (probably after all other components
>> already
>> in the tab).
>>
>> VS.NET uses a tool to wrap the COM component into a .NET assembly so that your project assemblies and VS.NET can reference the
>> component and use it on a Form.
>>
>> The calendar control is not a web component and cannot be used on ASP.NET pages. It will be disabled in this case.
>>
>> hope it helps,
>>
>> --
>> Dave Sexton
>> dave@www..jwaonline..com
>> -----------------------------------------------------------------------
>> "TnCoder" <Tn*****@discussions.microsoft.com> wrote in message news:78**********************************@microsof t.com...
>> > Hi;
>> >
>> > I just moved from vb 6.0 to vb.net. I am trying to add MS Calendar control
>> > to my toolbox. After the control is added, it is not enabled. Is there dll I
>> > have to add? Can anyone who could give me a step-by-step on how to add this
>> > control? All help would be appreciated.
>>
>>
>>