Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

How to use ActiveX parameters in the codebehind in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
david - 14 Feb 2006 16:38 GMT
I have created an ActiveX and load it into the Component in ToolBox in the
Visual Studio IDE.

After create a web form project (VB.NET), I drag the activeX component into
the web form design, set ID and name for it in the property, and the HTML
looks like:
<OBJECT id="AxCarControlID" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 616px;
POSITION: absolute; TOP: 304px; HEIGHT: 120px"
classid="clsid:65A0EEC0-745F-11D3-B92E-0020781238D4" name="AxCarControlName"
VIEWASTEXT>
<PARAM NAME="_cx" VALUE="16298">
<PARAM NAME="_cy" VALUE="3175">
<PARAM NAME="Animate" VALUE="0">
<PARAM NAME="Speed" VALUE="0">
<PARAM NAME="PetName" VALUE="">
<PARAM NAME="MaxSpeed" VALUE="0">
</OBJECT>

There is no reference automatically generated.

In the code behind, I try to type code in the Page_Load():

txtPetName.Text = AxCarControlName.PetName
txtMaxSpeed.Text = CStr(AxCarControlName.MaxSpeed)

But the system does not identify the name of the activeX, AxCarControlName.
So I can not comple the code.

I think that I did something wrong.

How to use the parameters of the activeX and activeX and interaction between
the web form and the activeX?

Thank you for any help

David
david - 14 Feb 2006 17:59 GMT
I may have to know how to implement the activeX interaction with web user
from web form

David

> I have created an ActiveX and load it into the Component in ToolBox in the
> Visual Studio IDE.
[quoted text clipped - 32 lines]
>
> David

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.