ActiveX
ActiveX
ActiveX
ActiveX
ActiveX
ActiveX ActiveX ActiveX ActiveX ActiveX ActiveX ActiveX ActiveX
ActiveX ActiveX
ActiveX
Go Back  Xtreme Visual Basic Talk > > > ActiveX


Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2013, 02:36 PM
holtzy holtzy is offline
Senior Contributor
 
Join Date: Jul 2002
Location: USA
Posts: 1,054
Talking ActiveX


I am new to the ActiveX world, so any info is gladly welcomed. I have created an ActiveX control using VS2010 and VB. It is registered, strong signed, etc. I am at the point now where my lack of knowledge is coming into play and I have worked up a nice headache .

In my code-behind for asp.net, I wish to call a function or set a property of the activeX control (i.e. Control1.DrawLine(new pointf(1,1))), but none of my public events that I created on the activeX control show up as an option.

I am currently getting the error: Value of type 'mycustomcontrol' cannot be converted to System.Web.UI.Control. The whole reason for me having to create it as an ActiveX control was so I could base it off of the windows usercontrol. Is it impossible to define this custom control in code-behind?
__________________
God is good!!!

Last edited by holtzy; 07-31-2013 at 03:33 PM.
Reply With Quote
  #2  
Old 08-05-2013, 05:00 PM
PlausiblyDamp's Avatar
PlausiblyDampActiveX PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,051
Default

Just to check on what you are doing....

Are you embedding this ActiveX control in an ASPX page and trying to interact with it from the code behind?

If so then this isn't how it works, if the ActiveX control is embedded in the page it will effectively be downloaded to the client and will run on the client (in reality this might not actually work depending on the browser and the security settings in place on the client).

Server side code (code behind) will run on the server and will not have access to the control running in the browser.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #3  
Old 08-06-2013, 07:55 AM
holtzy holtzy is offline
Senior Contributor
 
Join Date: Jul 2002
Location: USA
Posts: 1,054
Default

Yep, that is exactly what I was trying to do. I was doubting there was a way to do it. So to do this the way I need to it sounds like I have to write all interaction with the control/user in JavaScript. Bummer.

Thanks for the explanation!
__________________
God is good!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
ActiveX
ActiveX
ActiveX ActiveX
ActiveX
ActiveX
ActiveX ActiveX ActiveX ActiveX ActiveX ActiveX ActiveX
ActiveX
ActiveX
 
ActiveX
ActiveX
 
-->