473,322 Members | 1,911 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,322 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 1520
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.