.Net Program With COM ActiveX Capabilities?

Jun 9, 2011

I created a program with a textbox on it and a button that does something with the text in the textbox.How do I make that program COM visible, load it and automate it from another project?My goal is to be able to automate the program using COM:

Dim myProj as object = createObject("myProgram")
myProj.setText("Hello World")
myProj.buttonClickEvent()

Similar to how you can load a new excel and automate via interop:

dim xl as object = createobject("excel.application")
Dim wb as object = xl.workbooks.add
Dim ws as object = wb.worksheets(1)
ws.cells(1,1) = "i love stackoverflow"

How do programs do this? I'm looking for the answer VB.Net specific.

View 1 Replies


ADVERTISEMENT

Add InkPicture-like Capabilities To Program?

Aug 5, 2010

I'd like to create a Windows form that allows a tablet user to enter a signature. I'd then like to capture that signature as a bitmap on the clipboard.

I've got some code using the InkPicture ActiveX control in MS Word Xp (2002) and it works marginally - I think the control is hobbled because of security issues.

Is there a .Net control to capture mouse/pen strokes ala InkPicture? I see some old WinXP Tablet stuff out there but the capability should be part of Vista+ which is my target platform.

Should I just be looking for a simple drawing form example that can scribble a signature then get the image on the clipboard for paste into a Word doc as a signature (the ultimate goal?)

View 9 Replies

Add A ActiveX To Program?

Jun 17, 2009

I added an ActiveX dll to my program in VB.NET (Project/add reference/COM Tab).i put the control on a windows form, but when i try to start debugging it gives this error: 'Unable to get the window handle for the'AxMyActivex'control. Windowless ActiveX controls are not supported.

View 1 Replies

Failed To Import ActiveX Control (trying To Load A VC++ ActiveX Component Into A VB Project)?

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

Non-modal Forms Cannot Be Displayed In This Host Application From An ActiveX DLL, ActiveX Control, Or Property Page?

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

VB Program - Activex EXE Data Sharing (the Time Is A Bit Anxious)

Nov 12, 2009

I am in the main process using Activex EXE to create a sub-process, Activex EXE project inside a class module, class module which there are two instances of the event the equivalent of two threads, I defined the standard module module1.bas as public variable a, in two instances running at the same time, how the definition of public variables are not used, such as a private variable, each carrying out their respective variables of the same name! For example the implementation of a = a +1 statement, let the first instance of a run, a steady increase from 1; when executed when an instance of 2, a should be an instance of a value when the two began to increase, but also from two examples of 1,2 , ... began to increase.

[Code]...

View 1 Replies

Add DirectX Capabilities To My Project?

Oct 30, 2010

I want to add DirectX capabilities to my project and I don't feel like messing around to learn WPF at the moment. How can I include DirectX into my project running VS2010 .NET 4.0. I know MS no longer supports managed code for DirectX but is there an API module or something I can get.

View 3 Replies

Add Speech Recognition Capabilities?

Oct 14, 2006

I'm working on a program that needs Speech Recognition and every website says to download the Microsoft Speech Recognition Engine. I can't find that, but I've downloaded all the SDKs. Are they the same? And it always says to add a speech recognition component to the form, but I can't find where that is in Visual Basic 2005. I'm using the Express Edition, but I don't think that matters.

View 4 Replies

Cannot Set Capabilities Of Scanner Through Twain Driver

Sep 9, 2011

I have been working with TWAIN driver for few days. I have learnt how to connect to the scanner or get the working scanners connected to the machine. I am having a problem now, eventhough i get connected to the scanner, I am not able to set the capabilities from my application. The scanner scans using the capabilities that are set on it but not from my application. I have looked at the sample code given with twain pro but even that doesnt set the capabilities of the scanner. For example if the scanner is set to 300 dpi and I set 200dpi from my application, the scanner scans with 300 dpi. It gives me an error saying that the value given is out of range.

View 1 Replies

Add Scripting Capabilities To Windows Forms Application?

Dec 8, 2010

I want to allow the user to write a little script (JScript, VB, whatever) with a function called by my application that returns an XmlDocument object (a string would be ok).I did some research, and it looks like the scripting engines are obsolete.

The best solution I could find is here: [URL]..But I was wondering if there is a better and more "official" way.

View 7 Replies

Free Version Of SQL That Includes The SSRS Capabilities?

Aug 29, 2011

Is there any free version of SQL that includes the SSRS capabilities. I found the 180 day free trial. None of the Express version I download seem to have SSRS.

View 3 Replies

Inherited Listview Control Could Have Built In Cross Threading Capabilities?

May 15, 2009

I've not got any issues with Cross threading but I hate the amount of work involved in sorting cross threading issues out.I thought today that my inherited Listview Control could have built in cross threading capabilities; it would decrease the amount of work on the form, and tidy things up.I've got this to work (EnsureVisible method), BUT I'm a little stuck when it comes to the Items.add below is my example control.

[Code]...

View 8 Replies

Building A Server Control That Inherits Button And Giveing It Other Click Capabilities?

Dec 11, 2008

building a server control that inherits button and giveing it other click capabilities

View 5 Replies

Asp.net - Building A Server Control That Inherits Button And Giveing It Other Click Capabilities - Catch The Click Event?

Dec 1, 2010

I want to create a server control that inherits System.Web.UI.WebControls.Button but gives it special capability, now what do i mean? i want my button to be a confiorm button that will work like so:

Renders to the page as a button of lets say cancel after the user clicks it i want to catch the click event (within the server control) and now after the click makeing the button not visible and makeing some kind of content placeholder (that will render from the server control) visible. that content place holder will have 2 buttons inside of it: yes and cancel. I want the programmer that adds this control to be able to register a function to the click event of the yes button. and the second cancel confirmation button should make the first button appear agian. (i know how to do this all in the client side but this time i need it all as server events)

My question is this: how do i catch the click event? i want it all to be handled inside the server control itself. so a programmer that adds this control wont have to worry about anything but just needs to register to the click event of the "yes" button.

View 1 Replies

Msgbox Capabilities - Msgbox Cleared Without Having The User Do It Manually?

Nov 15, 2011

if its possible to have a msgbox cleared without having the user do it manually? what would be my best option here?

View 8 Replies

64 Bit ActiveX DLLs?

May 27, 2011

I've seen quite a few questions about calling 32 bit ActiveX components on 64 bit platforms - as I understand it you can't create a 32 bit ActiveX component from a .NET application running in X64 (native) mode. This is OK and I think I understand it.But my question is more basic. Is there such a thing as a 64 bit ActiveX component? or is ActiveX always 32 bit, period?

View 5 Replies

Activex Com .dll Not Working Under Ie8

Nov 19, 2009

I have a COM dll that has been developed under vb.net. The Control works just fine in IE 6 and IE 7, but when IE 8 tries to load the control, the browser crashes. I look at the event viewer and I get an error 1000 about iexplorer.exe and mshtml.dll. Do I have to build this com dll with IE 8 on my development machine? How can I track down what is wrong with the Control?

View 2 Replies

Activex Not Working Ie8?

Sep 23, 2009

I created an activex in vb6 and used it asp.net. It work perfectly in ie6 . But not working in ie8 . No errors showing. In security setting I enabled activex option just like i changed in ie6. Only the small square i can see in ie8.

View 2 Replies

Proper Way To Use Activex?

Mar 5, 2011

I use thrid party activex control/ dll/ocx file. I add them by using choose items and browse the desire file. When i deploy the application is that works?If not where i add these files which are use at any system where i install my application.

View 2 Replies

Redimming/Using An ActiveX DLL's UDT?

Sep 7, 2009

I am converting an application to Visual Basic .NET.I have an ActiveX DLL that I must use that contains a PublicNotCreatable class that contains these user defined types:

Public Type CSGSelectionItem
Primary As Long
Sub As Long

[code]....

I have come across a couple of problems with this. The most important problem is that VB.NET doesn't want to let me Redim the 'ItemList' of a variable with a type of CSGShapeSubSelection:

Dim cdtShapeSubSelection As CanvasSG.CSGShapeSubSelection
ReDim cdtShapeSubSelection.ItemList(lSelectionItemListCount - 1)

I get an error: 'Redim' statement requires an array.Also, it seems as though VB.NET has no knowledge of what CSGSelectionItem is. So, when I type:cdtShapeSubSelection.ItemList(0).I get no auto-complete suggestions of any value. I would have expected suggestions of "Primary", "Sub", and "OperationControlEffect", but instead I get "Equals", "GetHashCode" etc.

View 7 Replies

[2005] Using Vb6 ActiveX OCX

Apr 15, 2008

I have an activeX OCX which i used in my program in vb6 (it is a 3rd party component), it actually interfaces with a PLC to do some work. Now i am porting my VB6 app to vb.net (Console application), i tried to reference it and create an instance of the activeX. But i realised that my instance is always = nothing. Here is the code snippet of what am i doing and i have attached the activex ocx in a zip file. Will anyone test it if it will work in vb.net (Console apps only).

[Code]...

View 5 Replies

.net - Create ActiveX.DLL In VB 2010?

Dec 14, 2010

I am trying to create an ActiveX.DLL file. I have created them before with VB 5.0. However, I can't find this option in Visual Basic 2010. Has it been renamed?

View 1 Replies

Activex Control For Firefox 3.0.17?

Jan 12, 2010

how can i get activex contol for firefox 3.0.17

View 2 Replies

Activex Control For Sending Sms?

Sep 28, 2011

Do we have an activex control for sending sms using a modem?

View 1 Replies

ActiveX Control Won't Start?

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

Activex Controls Cannot Be Displayed Because Either?

May 20, 2012

I have created a created a webbrowser on a form and pointed it to [URL]..when i use the web form to change a verb, part way through navigation i get an the error:

Title Windows Internet Explorer body one or more activex controls cannot be displayed because either:

1) Your current security settings prohibit running activeX controls on this page or,

2) You have blocked a publisher of one of the controls

As a result the page might not display properly.

View 1 Replies

ActiveX DLL Not Working On Different Workstation

Mar 30, 2010

I have created a VB ActiveX Control. I embed the DLL using the following semantics. It appears to be working fine in my local machine. However, it does not in other's workstation. But I was not able to generate the LPK file using the LPK_tool.exe since the ActiveX control did not show up in the list.

<object id="printUtil" name="printUtil" classid="CLSID:440616e0-8d63-47b8-b16d-4fd281dc652b" >
</object>

View 1 Replies

ActiveX Project With Win Form?

Nov 1, 2010

I develeped VB.NET solution composed of two projects: 1 Win Form project and 1 class library (.dll) project.I need to import all the .NET solution to a "Lab View" project ("National Instruments" product) as an ActiveX object (or suitable LabView object to import from .NET as well). The "Lab View" view interface shoulf have a button which call the WinForm interface.Is it possible? I think that there could be some problems with Win Form project, that is difficult to set inside an ActiveX .NET project.

View 2 Replies

Add Reference To The COM Swf ActiveX Control ?

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

Can Not Create An ActiveX Component

Nov 1, 2009

I didnt know if this was the correct location to post this kind of question. My code is in C# however I am using the visualBasic. Interaction. CreateObject to connect to a OCX file. I notice that this works great for a while but if it continues to do its job for lets say a few days then I get and exception... "Can not create an ActiveX component." I am 100% sure that the ocx and dlls are registed correctly to the system.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved