Connecting Tech Pros Worldwide Help | Site Map

ActiveX type control or similar in C#

Alex
Guest
 
Posts: n/a
#1: Nov 17 '05
Hello,
I am trying to access some windows components from a web based application
and I am having trouble find my way. The only solution seems to be to creat
an ActiveX control to access the local com objects. My problem is that I
have been primaraly working in C# and too time consuming to go back and
re-learn VC++ to creat those controls I need. I found some articles on how
to creat ActiveX controls using C# and they work find when I test them in the
ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not get
the control to render on the web. Is there a better way that I am missing?
Can any one help, please?

Thank you.
¿ Mahesh Kumar
Guest
 
Posts: n/a
#2: Nov 17 '05

re: ActiveX type control or similar in C#


Hi Alex,
Try placing inside any container control such as panel control and
try...once i had same problem,I overcomed by placing inside empty panel
control. just give a try..

Maheshkumar.R
www.snipurl.com/guac

"Alex" <Alex@discussions.microsoft.com> wrote in message
news:9EE582DB-FE1D-4109-B899-34365CAB677A@microsoft.com...[color=blue]
> Hello,
> I am trying to access some windows components from a web based application
> and I am having trouble find my way. The only solution seems to be to[/color]
creat[color=blue]
> an ActiveX control to access the local com objects. My problem is that I
> have been primaraly working in C# and too time consuming to go back and
> re-learn VC++ to creat those controls I need. I found some articles on[/color]
how[color=blue]
> to creat ActiveX controls using C# and they work find when I test them in[/color]
the[color=blue]
> ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not[/color]
get[color=blue]
> the control to render on the web. Is there a better way that I am[/color]
missing?[color=blue]
> Can any one help, please?
>
> Thank you.[/color]


¿ Mahesh Kumar
Guest
 
Posts: n/a
#3: Nov 17 '05

re: ActiveX type control or similar in C#


Hi Alex,
Try placing inside any container control such as panel control and
try...once i had same problem,I overcomed by placing inside empty panel
control. just give a try..

Maheshkumar.R
www.snipurl.com/guac

"Alex" <Alex@discussions.microsoft.com> wrote in message
news:9EE582DB-FE1D-4109-B899-34365CAB677A@microsoft.com...[color=blue]
> Hello,
> I am trying to access some windows components from a web based application
> and I am having trouble find my way. The only solution seems to be to[/color]
creat[color=blue]
> an ActiveX control to access the local com objects. My problem is that I
> have been primaraly working in C# and too time consuming to go back and
> re-learn VC++ to creat those controls I need. I found some articles on[/color]
how[color=blue]
> to creat ActiveX controls using C# and they work find when I test them in[/color]
the[color=blue]
> ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not[/color]
get[color=blue]
> the control to render on the web. Is there a better way that I am[/color]
missing?[color=blue]
> Can any one help, please?
>
> Thank you.[/color]


Rahul Anand
Guest
 
Posts: n/a
#4: Nov 17 '05

re: ActiveX type control or similar in C#


> Hello,[color=blue]
> I am trying to access some windows components from a web based application
> and I am having trouble find my way. The only solution seems to be to creat
> an ActiveX control to access the local com objects. My problem is that I
> have been primaraly working in C# and too time consuming to go back and
> re-learn VC++ to creat those controls I need. I found some articles on how
> to creat ActiveX controls using C# and they work find when I test them in the
> ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not get
> the control to render on the web. Is there a better way that I am missing?
> Can any one help, please?
>
> Thank you.[/color]

Hi Alex,

Hope following links will help:

http://www.c-sharpcorner.com/Code/20...tiveXInNet.asp
http://www.devhood.com/tutorials/tut...utorial_id=187

--
Cheers,
Rahul Anand
Rahul Anand
Guest
 
Posts: n/a
#5: Nov 17 '05

re: ActiveX type control or similar in C#


> Hello,[color=blue]
> I am trying to access some windows components from a web based application
> and I am having trouble find my way. The only solution seems to be to creat
> an ActiveX control to access the local com objects. My problem is that I
> have been primaraly working in C# and too time consuming to go back and
> re-learn VC++ to creat those controls I need. I found some articles on how
> to creat ActiveX controls using C# and they work find when I test them in the
> ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not get
> the control to render on the web. Is there a better way that I am missing?
> Can any one help, please?
>
> Thank you.[/color]

Hi Alex,

Hope following links will help:

http://www.c-sharpcorner.com/Code/20...tiveXInNet.asp
http://www.devhood.com/tutorials/tut...utorial_id=187

--
Cheers,
Rahul Anand
Alex
Guest
 
Posts: n/a
#6: Nov 17 '05

re: ActiveX type control or similar in C#


Hi,
Thank you for your response.
The problem i have is that i need to launch Microsoft Active Sync from the
browser and other applications like it. And so far the only way i can see
that happening is through COM and an ActiveX control that access the COM
object on the users local system.

Thank you,
Alex

"¿ Mahesh Kumar" wrote:
[color=blue]
> Hi Alex,
> Try placing inside any container control such as panel control and
> try...once i had same problem,I overcomed by placing inside empty panel
> control. just give a try..
>
> Maheshkumar.R
> www.snipurl.com/guac
>
> "Alex" <Alex@discussions.microsoft.com> wrote in message
> news:9EE582DB-FE1D-4109-B899-34365CAB677A@microsoft.com...[color=green]
> > Hello,
> > I am trying to access some windows components from a web based application
> > and I am having trouble find my way. The only solution seems to be to[/color]
> creat[color=green]
> > an ActiveX control to access the local com objects. My problem is that I
> > have been primaraly working in C# and too time consuming to go back and
> > re-learn VC++ to creat those controls I need. I found some articles on[/color]
> how[color=green]
> > to creat ActiveX controls using C# and they work find when I test them in[/color]
> the[color=green]
> > ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not[/color]
> get[color=green]
> > the control to render on the web. Is there a better way that I am[/color]
> missing?[color=green]
> > Can any one help, please?
> >
> > Thank you.[/color]
>
>
>[/color]
Alex
Guest
 
Posts: n/a
#7: Nov 17 '05

re: ActiveX type control or similar in C#


Hi,
Thank you for your response.
The problem i have is that i need to launch Microsoft Active Sync from the
browser and other applications like it. And so far the only way i can see
that happening is through COM and an ActiveX control that access the COM
object on the users local system.

Thank you,
Alex

"¿ Mahesh Kumar" wrote:
[color=blue]
> Hi Alex,
> Try placing inside any container control such as panel control and
> try...once i had same problem,I overcomed by placing inside empty panel
> control. just give a try..
>
> Maheshkumar.R
> www.snipurl.com/guac
>
> "Alex" <Alex@discussions.microsoft.com> wrote in message
> news:9EE582DB-FE1D-4109-B899-34365CAB677A@microsoft.com...[color=green]
> > Hello,
> > I am trying to access some windows components from a web based application
> > and I am having trouble find my way. The only solution seems to be to[/color]
> creat[color=green]
> > an ActiveX control to access the local com objects. My problem is that I
> > have been primaraly working in C# and too time consuming to go back and
> > re-learn VC++ to creat those controls I need. I found some articles on[/color]
> how[color=green]
> > to creat ActiveX controls using C# and they work find when I test them in[/color]
> the[color=green]
> > ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not[/color]
> get[color=green]
> > the control to render on the web. Is there a better way that I am[/color]
> missing?[color=green]
> > Can any one help, please?
> >
> > Thank you.[/color]
>
>
>[/color]
Alex
Guest
 
Posts: n/a
#8: Nov 17 '05

re: ActiveX type control or similar in C#


Hi,
Thank you for your response. I have actually found and read through them.
The problem i have had is that as i follow the instructions, from my web page
the control renders as a text box which i can not do anything with. I am
missing something very simple, but i am not sure what. I have created a very
simple user control with a button on it. I have added the control
registration and control unregistration code as they suggest. I have copied
the dll to the web directory. But i still can't get it to render. The only
thing i can think of is that the control has to be added to the GAC for it to
work. Trying to register the control manually as you would with other
ActiveX controls does not work. As my level of knowledge is very limited in
this area I am not sure if I am on the correct path or not.

Thank you again for your quick response,
Alex

"Rahul Anand" wrote:
[color=blue][color=green]
> > Hello,
> > I am trying to access some windows components from a web based application
> > and I am having trouble find my way. The only solution seems to be to creat
> > an ActiveX control to access the local com objects. My problem is that I
> > have been primaraly working in C# and too time consuming to go back and
> > re-learn VC++ to creat those controls I need. I found some articles on how
> > to creat ActiveX controls using C# and they work find when I test them in the
> > ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not get
> > the control to render on the web. Is there a better way that I am missing?
> > Can any one help, please?
> >
> > Thank you.[/color]
>
> Hi Alex,
>
> Hope following links will help:
>
> http://www.c-sharpcorner.com/Code/20...tiveXInNet.asp
> http://www.devhood.com/tutorials/tut...utorial_id=187
>
> --
> Cheers,
> Rahul Anand[/color]
Alex
Guest
 
Posts: n/a
#9: Nov 17 '05

re: ActiveX type control or similar in C#


Hi,
Thank you for your response. I have actually found and read through them.
The problem i have had is that as i follow the instructions, from my web page
the control renders as a text box which i can not do anything with. I am
missing something very simple, but i am not sure what. I have created a very
simple user control with a button on it. I have added the control
registration and control unregistration code as they suggest. I have copied
the dll to the web directory. But i still can't get it to render. The only
thing i can think of is that the control has to be added to the GAC for it to
work. Trying to register the control manually as you would with other
ActiveX controls does not work. As my level of knowledge is very limited in
this area I am not sure if I am on the correct path or not.

Thank you again for your quick response,
Alex

"Rahul Anand" wrote:
[color=blue][color=green]
> > Hello,
> > I am trying to access some windows components from a web based application
> > and I am having trouble find my way. The only solution seems to be to creat
> > an ActiveX control to access the local com objects. My problem is that I
> > have been primaraly working in C# and too time consuming to go back and
> > re-learn VC++ to creat those controls I need. I found some articles on how
> > to creat ActiveX controls using C# and they work find when I test them in the
> > ActiveX tester tool that comes with Visual Studio.NET 2003, but I can not get
> > the control to render on the web. Is there a better way that I am missing?
> > Can any one help, please?
> >
> > Thank you.[/color]
>
> Hi Alex,
>
> Hope following links will help:
>
> http://www.c-sharpcorner.com/Code/20...tiveXInNet.asp
> http://www.devhood.com/tutorials/tut...utorial_id=187
>
> --
> Cheers,
> Rahul Anand[/color]
Closed Thread