VS 2008 : Placing An ActiveX Control On A Form?
Sep 15, 2009
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
ADVERTISEMENT
Apr 8, 2009
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 Replies
Oct 20, 2010
How 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 Replies
Jul 21, 2009
Im trying to build an activeX control to be used in excel using VB08 Xpress addition. I have found instructions to create a Class Library Project, then add a user control. Under Build there is only one option, Build "Project Name", no options, no nothing. The build creates a .dll file not an ocx (which I was expecting?)
The problem is that when I compile the control I get a .dll file that I cant register as a activeX control, therefore I cant use it in excel. Ive tried to create stupidly simple activeX controls, ie one label that says "Hello World", still no luck. When I try and register the .dll file, it doest work, therefore no dice with excel.
The strange thing is that within VB08 Xpress I can use the control in any Windows Form Application I create.
View 1 Replies
Feb 4, 2010
I have some code that I've inherited, and it's not the greatest in the world, but it works, with one small exception:
This page is a directory search, it has controls identified by record ID, however there exists a situation where there can be more than one result with the same record ID, thus making .NET barf. I had originally implemented a check that just didn't put the control on the page, if it was already there, but we've been getting negative feedback.
My question is this: Is there a way to put the same control in two places at once, for instance having if a user checks one, the corresponding one checks as well? I'm not terribly well versed in how .NET behaves, but I'll try to provide as much additional context as possible, if needed.
EDIT: Here's the updated code that generates the controls by looping over a datatable of results
Dim cbxSendInfo As CheckBox
Dim strCheckboxID As String = "cbxSendInfo-" & drOrganizer("ID") & "-" & i
Debug.text = Debug.text & " Loading Checkbox (" &
[Code]....
Where drOrganizer("ID") is the record ID, and i is the result record number.
I know this is a terrible way to do this, at least from my background, but like I said, this is inherited code that's been hacked to pieces.
View 4 Replies
Apr 26, 2009
This is my Repeater
<asp:Repeater ID="blogRepeater" runat="server">
<ItemTemplate>
<br />[code].....
Now I have a variable called My_Variable. How can I place that variable My_Variable inside my Repeater above?
View 4 Replies
Aug 26, 2009
I'm new at the forums but not to .net development. I'm trying to make an application, which stays above the Dektop level but ALWAYS below any opened window. This application cannot be minimized, it has to be visible as a desktop background (just for getting you the main idea). As I was reading, I found that the way to make the form not to minimize is by using the WndProc function, and intercepting the Minimize message. My question is.. which of all the available messages is the correct for this case?.
P.D.3 (And last one I hope): See, the main reason of this application, is to make some kind of an "Active Desktop" function, which is not supported by Windows XP 64-bit. As XP64 doens't come with Active Desktop to use Web Pages as Desktop backgrounds, my idea is to make an application which loads certain web page and put's it on the desktop background.
View 3 Replies
Jul 16, 2012
I have a project with a number of forms. In Form2, I have a split container. In panel 1, I have a number of radio buttons. What I have not been able to do is use the radio buttons to select a form to be shown in the panel on the right.
[Code]...
View 5 Replies
Jun 1, 2010
I have been placing my database fields (details view) on a form but for some reason they are all appearing as text boxes with the exception of date fields. Why are none of them showing as drop down lists?
View 1 Replies
May 1, 2012
I have searched the web and this site for an answer but have not been able to solve this problem.I am not able to place a flashing cursor in a specified cell of a data bound DataGridView on Form_Load.My test project consists of a single Visual Basic 2008 form with a database created in Microsoft SQL Express 2005 using the Add New Data Source in the Data Sources window.The database has one table consisting of 2 columns.Column 1 being the primary key with Identity Specification set to On.The second column is a VarChar50.The DataGridView was placed on the form by dragging it from the Data Sources window thereby creating the Binding Navigator and the Private_Sub Form_Load code.I have added the code that should put the cursor where I want it.[code]
View 2 Replies
Jan 12, 2010
how can i get activex contol for firefox 3.0.17
View 2 Replies
Sep 28, 2011
Do we have an activex control for sending sms using a modem?
View 1 Replies
Apr 27, 2009
I 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]....
View 3 Replies
May 5, 2010
I 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 Replies
Jan 23, 2010
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.
View 1 Replies
Jul 9, 2009
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).
View 1 Replies
Apr 11, 2011
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
View 5 Replies
Jun 15, 2010
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 Replies
Mar 25, 2010
I 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?
View 1 Replies
Dec 31, 2009
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.
View 14 Replies
Dec 6, 2011
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 Replies
Jul 10, 2009
I 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]...
View 3 Replies
Jun 7, 2006
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?
View 1 Replies
Aug 11, 2011
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.
View 2 Replies
Aug 2, 2009
I have to create multiple child window each embedded with dsoframer activex control,
Like,the following,
Private Function add_activex_control()
...
[code]......
View 1 Replies
Jan 22, 2010
I 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]...
View 9 Replies
Jul 25, 2011
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.
View 1 Replies
Sep 1, 2010
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.
View 1 Replies
Jan 26, 2011
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 Replies
Jan 28, 2011
We 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 Replies