Add Reference To The COM Swf ActiveX Control ?
May 5, 2010I wont to add swf file to my Vb.net project. I'm using Visual Studio 2010. How can i insert swf file to vb.net project ?
View 7 RepliesI wont to add swf file to my Vb.net project. I'm using Visual Studio 2010. How can i insert swf file to vb.net project ?
View 7 RepliesI am attempting to move Visual Studio 2008 project from an XP Pro development environment to a Win 7 64-bit Ultimate environment. In the process of doing so, I have one ActiveX COM control that the project uses. I've installed that control using the maker's installer. Now, when I open the project, the project cannot find the control, etc. - "The system cannot find the reference specified." I also tried moving a particular file to the system32 directory, as per a possible fix they posted, but that didn't help either.
[Code]...
i compiled 1 control in vb6. now i'm trying use it in vb2010, but i recive 2 warnings:
"Warning1A reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'AxInterop.Sprite'. Consider changing the 'Embed Interop Types' property on either assembly.WindowsApplication1" and "Warning2 reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'Interop.Sprite'. Consider changing the 'Embed Interop Types' property on either assembly.WindowsApplication1 "why these warnings? (i have sure that in vb6 don't give me any errors)
I am trying to load an actixex component in a VB project which was made in Visual C++.n VBA it works fine.In VB6, when I try to load the component on the toolbox I get an "Error 35005"In VB2008 the component can be added to the toolbox, but when I try to place it on the form, the following error occurs: "Failed to import ActiveX control. Please ensure it is properly registered."
View 1 RepliesHow to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.
View 1 RepliesI am working on a project that needs to using an activeX driver (libaray), a .ocx file. The driver have some properties and methods. I added the reference and have a new instance. When I try to put values to the properties, I got error messages from the driver.
Imports CBMCOMMLib
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[URL]
MaxTraces is one of the properties. Am I using the library correctly?
I have a VB6 based ActiveX dll file.
When i create a new Visual Studio 2010 web site, and i try to add a reference to that dll the following error appears:
A reference to 'dllName' could not be added. Converting the type library to a .NET assembly failed. Execution of the following process failed: C:Archivos de programaMicrosoft SDKsWindowsv7.0AinTlbImp.exe "c:mystitedllName.dll" /transform:dispret
[Code]....
If you delete some of these two functions the error doesn't appears. This problem is not present in Visual Studio 2008 or 2005.
I m working on one of vb6 projects. There are total 3 projects. One of them is ActiveX Exe is and has main method, second one is also AxtiveX Exe but doesnt have main method (only Classes) and third project is of ActiveX Dll.Well I m trying debug and issue and trying to put all 3 prjts in 1 Group prject but some how I cant add reference of 2nd prject into the first one. I get an error of " cannot be referenced because its project type is exe" but I can add a ref of its compiled exe but this doesnt help in debugging of whole prjt.
View 7 Replieshow can i get activex contol for firefox 3.0.17
View 2 RepliesDo we have an activex control for sending sms using a modem?
View 1 RepliesI created an ActiveX Control in ATL, which I can succesfully use in for instance Internet Explorer. When I want to put that object in a VB.NET (2003) app, I get some problems.
First I 'Import' the control, using Visual Studio, so there are COM Interop DLLs created. Then I insert the control in the toolbox and drag/drop on a form. The control is succesfully created.
However, when I run the VBApp, it crashes. The debugger tells me that it gets a 'Class Not Registered' error.
Same when I create a pushbutton and create the object manually:
Code:
Dim AxQuest3DCtrl As Object
AxQuest3DCtrl = CreateObject("MyControl.MyCtrl.1") //crashes here
If AxQuest3DCtrl Is Nothing Then
[Code]....
Working on getting a legacy app up and running again for work. I'm getting an error at run time that I can't create an activeX control. The suspect call is
oSQL = CreateObject("SQLDMO.SQLServer2")
I did a bit of googling and found that SQLDMO should be in a SQLDMO.dll. I've got that DLL referenced in my project but it is still failing.
I have a legacy VB6 ActiveX control used in IE to provide control of a parallel-port device from a browser application. I wrote this thing about five years ago; It's a pretty simple control, and it doesn't require a lot of maintenance. However, I've noticed that running the VB6 tools is becoming more and more painful over time, so I'm looking at the possibility of migrating this code to VB.net 2008.This thing is super-simple. It implements IObjectSafety and exposes a single public method, which we call using Javascript. The control has no UI other than a single box with a caption that displays its name and version number-- useful for troubleshooting deployment issues.
How would I create the equivalent in .net? Am I creating an applet? Or a .net Assembly? Any gotchas to look for as I try to make this transition?(I should make it clear here that I'm not either a VB6 programmer or a .net developer-- I've dabbled in this stuff but it isn't my area of expertise, so go easy on me).
I am using the WebBrowser control in Rockwell Automation's Factory Talk SE v. 6.0 to display a PDF file. Within the "Display_AnimationStart" routine, I call the function below to send a ctrl+h to the system to hide the toolbars, which has proven to be quite unreliable.
Is there a more direct, object-specific way to hide the browser's toolbars other than the SendKeys method?
Private Sub LoadPDF(Filepath As String)
SendKeys "^h", True
Me.WebBrowser1.Navigate2 (Filepath)
End Sub
I'm developing in VS2005 on WS 2008 and I've created a windows application containing the webbrowser control.I am trying to run a page containing an activex control, the download prompt for the cab file appears even though the control is installed and running in IE on this machine.Also if I navigate to a site containing Flash, the content is not shown as if Flash is not installed, but it is and again runs fine in IE
View 1 RepliesI have the need to embed what I want to call an ActiveX component into a webpage on my intranet. The reason I want to do this is, I'd like to check if a USB security token is inserted on the end users PC.
My question is: what do I need to be researching to accomplish creating a control which can be embedded into Internet Explorer when programming in VB.NET?
I am developing an application in Visual Basic under Visual Studio 2008 Professional. As part of this application I am using a third-party ActiveX control (.ocx file). After building the installer (.msi file) using the deployment tools in Visual Studio, I tested it on a clean system. The install appeared to run successfully--folders are created, files are copied, and the .ocx is registered. However, when I tried to run the application I received an error telling me "You must have a license to use this ActiveX control." This would be expected on the development machine, but should not happen on the client system, i.e., in the runtime environment.
On previous builds of the application, I did not receive this error. Besides updates to the application itself (the part I created, that is), I was using NSIS to create the installer, rather than the tools in Visual Studio. The application cannot run without the .ocx in question, so this error is a show-stopper.
i am creating an activeX control... in this control i want to manage what the tab key does. i may a user interface that allows tabs in the textbox or it might move the user to the next screen. i have everything working in the IDE, but when my activeX is loaded into the 3rd party application the tabs no longer trigger the key down event. i assume this is because the parent application has tab stops is there a way on a control by control basis to stop the normal execution of tabs?
View 1 RepliesI am trying to embed an activex control (.ocx) created using VB6.0. It's a bare bones usercontrol with no extra code, just for testing purposes. But when I embed this control in one of our windows forms in our legacy development environment (Gupta Centura V3.1), running as an MDI child in an MDI context, the main menu bar of our runtime MDI disappears.
[Code]...
I am using VB2005 express and VC#2005 express. With my old friend VS2003, whenever i needed to add flash to my WInforms, all i needed to do was to add the control as a com component and drag it on the stage from the toolbar. Now, when i did the same in new express version, althogh it is added in the toolbars and the references list, but still, whenever i try to drag a shockwave flash instance on my win form, i get the error: Failed to import ActiveX control, please ensure it is properly registered.
does some one have any idea how to add flash comntrol as we used to do in earlier versions?
I am writing a customized data acquisition application in VB2010. The maker of the data acquisition hardware has provided an ActiveX control that has methods, properties, and events that can be used to interface with the hardware device.My problem is that I'd like to reference the same control (ideally the same instance of the control) on multiple forms.
To begin, it is necessary to initialize the device, sending the control information like sample rate, number of channels, etc. Then you can use methods to start or stop getting data and read properties, like the number of samples taken, or an array of the
actual data. The device also provides events, like a DataReady event that fires when a certain number of samples have been taken, and a DeviceError event that fires if the device is not present.
My program will have several forms:
1) a main menu that opens on startup and that should initialize the unit and determine whether it is present.
2) a daily check form that will get values from the device to determine whether the electronics are good.
3) a test setup form that will get values from the device to zero (tare) the input channels.
4) a run test form that will acquire and process the actual test data.
If I include separate instances of the control on each form, I need to initialize and stop the control when the forms open and close. I started to build an interface class that the forms could share and that would deal with all of the methods, but I get tripped up trying to pass the control's events back to the form.
I have to create multiple child window each embedded with dsoframer activex control,
Like,the following,
Private Function add_activex_control()
...
[code]......
I've developerd an ActiveX Control using VB6. I've also developed its installer .cab package for web. A simple html code is given below that explain how i use that package in html page
<HTML>
<HEAD>
<TITLE>MyAcrivexControl.CAB</TITLE>
[CODE]...
<!-- If any of the controls on this page require licensing, you must create a license package file. Run LPK_TOOL.EXE to create the required LPK file. LPK_TOOL.EXE can be found on the ActiveX SDK, [URL]. If you have the Visual Basic 6.0 CD, it can also be found in the ToolsLPK_TOOL directory.
The following is an example of the Object tag:
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
<PARAM NAME="LPKPath" VALUE="LPKfilename.LPK">
</OBJECT>
[CODE]...
In ideal situation whenever i run this page by typing url like [URL]. it should ask me for download and install the control, but it didn't.
Hint: this one might sound complicated, because I am trying to give as much info as possible, but I suspect that I just want someone to tell me "yes, you are correct".On this legacy system, which dates from 2002, the user visits a web page and uses an RFID reader to read a tag number, which is then written to an input field on the web page.
The only s/w that comes with the reader is a custom DLL, nop .exe. The very sparse documentation insists that only MSIE be used and that all security relating to ActiveX be disabled.When I look into the source of the web page I see calls to functions in the DLL.Now, here's the fun part: I know zilch about ActiveX, I have to make a minor change to the DLL _but_ the VB6 source code has been lost, so I guess that I have to recreate the (seemingly very simple) DLL from scratch - this week.
Decompiling the DLL shows me the functions (locateReader, getTagVal, closeReader). However, by decompiling I can't really know the number or type of the parameters, nor the return values ... and if anyone knows the API they are refusing to share it, but basically it all seems to have been lost in the mists of time as companies went bust, were bought & sold, merged & demerged and the initial DLL might have been written by an external guy, but no one knows who.So, can I get the function params & type from the ASP page source?I see things like
Reader = new ActiveXObject("<dllName>.Reader");
Reader.locateReader();
tagVal = Reader.getTagVal();
Reader.closeReader();
I would say that none of the fn()s take parameters, that closeReader doesn't have to return anything; it looks like locateReader doesn't return anything either, so I guess that error handling will have to be in the DLL (loop forever with a popup demanding that a reader be attached; and getTagVal seems to return a string.
I'm using the Adobe Acrobat PDF Viewer ActiveX (AxAcroPDFLib.AxAcroPDF) control in one of my forms to display Controlled Document PDFs and my customer would like end users to not be able to print these documents. Is there anyway to disable printing through this control?
View 2 RepliesWe have a VB.Net app that has several editable reports and forms in html/javascript. I'm using the standard WebBrowser control.We're accessing the content via filepath, since using localhostsharename when the machine is offline doesn't work even though the content is on the machine. The problem with that is that then it's running in the local machine zone, and you get the warning about running ActiveX controls (even if that's set to 'allow' in the options menu on IE). So I'm using Mark of the Web to act as if the content is saved from localhost. I appended it with the requisite vbCrLf to the start of the HTML page that's being dynamically written every time a link is clicked. When I open the resulting page in IE, I no longer get the ActiveX warning, and everything works. However, when I use WebBrowser.Navigate to that filepath, I still get the warning. Any idea how to get rid of that?
View 1 Repliesi am working with this project : sending/receiving of sms thru pc (which is connected to the phone). I am using oxygen and vb.net. My code in vb.6 is working (receiving sms)
[Code]...
I'm trying to register an active x control in windows vista but no luck. i'm using regsvr32 "myButton.ocx" in run command but its not working and giving error everytime. how can i register an activex control in windows vista 32bit?
View 6 RepliesI have these robots. The maker of the robots (Sankyo) wrote some ActiveX controls. Some work, some don't. There is absolutely no support on the ActiveX from Sankyo or anybody else. I think except for parts and service Sankyo is out of the robotics business in the US.The examples are in VB6. Here is one example of one that does not work:
GetPosition(taskSpec As Long, coordType As Long, posArray As Variant)
Dim vPoints(3) As Single
SRSync.GetPosition 1, 1, vPoints
The error I get is a cryptic hex code that I can't find anything on. If I try the exact code above in VB6 I get a message that says that the vPoints variable is not the right kind of array. I have tried all kinds of data structures in both vb6 and vb.net including just a simple object. I suspect that the data is coming back in some kind of structure that makes vb puke.I have read about marshaling but an still confused. In this case I don't understand the underlying mechanics of how the returned stream of data gets converted into the variable "posArray".I am thinking that if I could just get a look at what is being returned then I could create some kind of code that could chop it up and make it usable.
I have been trying for ages to put an ActiveX control on a windows form for a CCTV camera I am using. I have registered the control with windows, added it as a reference to my VS2008 project and now it appears in the toolbox.When I put the ActiveX control on the form I always get an error saying "Failed to create back buffer surface" The control is added to the form however I can not get it to work and I suspect it has something to do with this error.I have an example project from the developers of the camera that does not have this problem, i.e. I can add the ActiveX control with no problems, however the program is in C++ and I am using VB.Net.Is there anything else I need to do to stop this error from occurring?I am using a CCTV camera from Zavio (F521E). The ActiveX control is called AxVideoView.ocx.
View 5 Replies