473,387 Members | 1,464 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,387 software developers and data experts.

ActiveX type control or similar in C#

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.
Nov 17 '05 #1
8 1525
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" <Al**@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
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.

Nov 17 '05 #2
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" <Al**@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
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.

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


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


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
Nov 17 '05 #5
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:
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" <Al**@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
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.


Nov 17 '05 #6
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:
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" <Al**@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
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.


Nov 17 '05 #7
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:
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.


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

Nov 17 '05 #8
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:
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.


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

Nov 17 '05 #9

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

Similar topics

1
by: Devonish | last post by:
I am developing a database using Windows 2000/Office 2000 which then runs on a client's system which uses Windows XP/Office XP In a form I have an ActiveX Calendar control which works well. When...
1
by: MLH | last post by:
I have code below in the OnUpdated property setting for the ActiveX control. However, when I left click a new date on the calendar in an open form, the code does not run (IE, msgbox does not...
0
by: Tom W | last post by:
Hi I'm using an activex browser control (AxWebBrowser) in my windows forms application. One of my MainMenu items in my application is using the shortcut key Control+N. The problem is that...
5
by: Dan | last post by:
Good Day All, I am having a problem in Visual Studio 2005 Beta 2. I am hoping someone might have an idea as to what is going on. I have an ActiveX User Control written using Visual Basic 6.0....
0
by: Alex | last post by:
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...
3
by: Michael Fitzpatrick | last post by:
How do I create an ActiveX COM control using VB.Net. I want to create a control to use in Office 2000 VBA.
0
by: sukhpalsingh | last post by:
With this little DLL you can embed either Mozilla ActiveX Browser Control or MSIE by just calling it's EmbedBrowser(HWND hwnd, int i) function. 0 = Mozilla Activex Browser Control and 1 = MSIE. ...
6
MMcCarthy
by: MMcCarthy | last post by:
Hi everyone, I can't remember what causes this bug. I'm using an ActiveX calendar control on its own form in an application I designed. It works fine on my system but causes a problem on the...
17
by: MA10 | last post by:
I'm working with my access project using MS Visual Basic. However there's a problem occur when I used adodb.recordset. Most of the solutions that I searched needs me to download MS ActiveX Data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.