473,376 Members | 1,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,376 software developers and data experts.

Adding Com component

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.
Nov 22 '05 #1
6 2075
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.

Nov 22 '05 #2
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.


Nov 22 '05 #3
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.


Nov 22 '05 #4
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.


Nov 22 '05 #5
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.
>>
>>
>>


Nov 22 '05 #6
Dave;
Nope, it's a window's CE app. but thanks for the help anyway

Dale

"Dave" wrote:
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.
>>
>>
>>


Nov 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: TnCoder | last post by:
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...
2
by: David Williams | last post by:
I have a simple XML file that I have been using: <component name="test"> <class name="class"/> <component> Up till now, the Xpath of "//component/class" worked well to select the <class>...
2
by: Jeroen Ceuppens | last post by:
Hi, I want to add a component of these class : public class OptiePanel : System.ComponentModel.Component I put on this class in a constructor with in it lost of things to add like:...
0
by: Alin Comsa | last post by:
Hello, I am trying to add a component in Component Services package from my program and i really don't have any clue how to do it. Have anyone any idea how to do that? Thanx
1
by: Lauchlan M | last post by:
Hi. I followed the steps suggested below . . . Say I created my component in the namespace "cld.aspnet.components" - where (filepath) would I look for the dll to add in to the toolbox, and...
6
by: cpnet | last post by:
I've authored a custom web component (a non-ui component kinda like a DataSet) and so far it's working. When my web component is added to the web form in the designer from the toolbox, the...
4
by: Amin Sobati | last post by:
Hi, I have added a component class that inherits System.windows.Forms.TextBox. This component is in the same project as my windows application (executable). I could instantiate it and add to...
12
by: cjobes | last post by:
Hi all, I'm trying to create a dataset as a component to make it accessable from all forms. I have used that following code so far in the component designer: Inherits...
5
by: Doug | last post by:
I am looking at using the decorator pattern to create a rudimentary stored proc generator but am unsure about something. For each class that identifies a part of the stored proc, what if I want to...
1
by: Doug | last post by:
I am looking at using the decorator pattern to create a rudimentary stored proc generator but am unsure about something. For each class that identifies a part of the stored proc, what if I want to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.