Re: Adding Com component



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@xxxxxxxxxxxxxxxxxxx
> -----------------------------------------------------------------------
> "TnCoder" <TnCoder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D46360F8-6E54-48DE-B161-DB773BA73579@xxxxxxxxxxxxxxxx
> > 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@xxxxxxxxxxxxxxxxxxx
> >> -----------------------------------------------------------------------
> >> "TnCoder" <TnCoder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:7956108E-DCFF-405A-8BFE-C31F8AEAE730@xxxxxxxxxxxxxxxx
> >> > 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@xxxxxxxxxxxxxxxxxxx
> >> >> -----------------------------------------------------------------------
> >> >> "TnCoder" <TnCoder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:78EB5C57-1478-4CE7-98DB-E153B641ED2B@xxxxxxxxxxxxxxxx
> >> >> > 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.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: Opinion wanted
    ... the details including the nature of my own app (which you mischaraterized ... correct the current control (provided that control is invalid but invalid ... causes you to validate controls that have already been ... largely discreditted for good reason and has very little use these days. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Honestly Curious
    ... Mac apps do not need this. ... you don't have to run an app at all. ... You don't have to look for the right app to uninstall, ... full control over what is being removed from your HD. ...
    (comp.sys.mac.advocacy)
  • Re: Visual Basic for Autorun?
    ... If changes are required they can't be specific to one app. ... Obviously this doesn't apply to all usercontrols and should ... everything is in the one language. ... >I've done it fairly extensively and it works quite well as long as you keep good control over it. ...
    (microsoft.public.vb.general.discussion)
  • Re: OT: OH OH!
    ... dave ... Also, whereas Iraq had few actual friends to come to their aid and an army decimated by the previous Gulf War, Iran has strong relations with both Russian and China, and an army of relative merit. ... And - although I don't think any more atomic weapons are needed in the world, I don't really see how the U.S. has the ethical oomph to tell anyone else who and who can't have nuclear weapons. ... While I again agree with you Dale, the current "outrage du jour" over some cartoons displays a reaction on the part of *some* of the believers of Islam that is alarming. ...
    (rec.music.beatles)
  • Re: Access apps with user definable fields?
    ... New fields would need to added to tables, queries, ... Of course they have their own built in report writer ... > I have an app I built for nonprofits who provide FREE ... > add control switches to control whether certain fields are displayed or ...
    (microsoft.public.access.formscoding)