Calling An External Program?

Feb 27, 2010

im having trouble getting my program to call an external application. the only thing is that im trying to get the path from a setting

my.settings.e1p

so far i've tried this

System.Diagnostics.Process.Start(My.Settings.e1p)

View 5 Replies


ADVERTISEMENT

Calling An External Function?

Oct 9, 2009

wondering if there was anyway I could call a function of an external program. Ie.My App:Call Reset()External App:Reset()My.Settings.Rese

View 4 Replies

Calling External DLL Function?

Mar 21, 2012

In my application I'm trying to invoke a function from an external DLL (this DLL is compiled in C++)I have this code to declare the DLL function:

Code:
<DllImport("{DLLPATH}", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function functionName(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef Name1 As

[code]....

View 2 Replies

External DLL Calling VB Function?

May 12, 2011

I'm using a 3rd party DLL to access a proprietary Database. It's designed to invoke a function called "CALL_ME_FUNCTION" to make the datarows available to my program. What makes it difficult is the CALL_ME_FUNCTION is in the VB program and therefor, external to the DLL iteself. I've got the CALL_ME_FUNCTION written in my program, but how do you give access of it to the DLL? I've written lots of code that invokes functions inside a external DLL, but this is the first time I've encountered a DLL that needs to run a VB function.

View 6 Replies

Calling A Function That's In A Module In External Application

May 25, 2012

I have an application (app.exe) that has a VB Module in its source code (Module1). The module has a function called Function1. I need to call this function from another application. The module is not marked as public, so adding a reference to app.exe won't work. I'm trying to use reflection (Assembly.LoadFrom()) but unless I'm way off base, the module would have to be a class in order for me to get an instance of it.

Please nobody ask me "what have you tried?" I tried a million different things and let's just say "none of them work." So I'm looking for someone that has specific experience with doing exactly what I'm trying to do. If you don't have that experience, please move on to the next question and ignore mine.

View 1 Replies

Calling External Previously Registered Functions From A DLL?

Mar 27, 2010

I have a dll whitch init a thread in dllmain.After than, the calling application call some dll functions which register the remote function of the application.function register done, when the thread works and receives and even, it call the program functions (those I stored register before)int C would be like:

int (__stdcall *f_wmif) (char *) = NULL;
INT __declspec(dllexport) __stdcall _DGTDLL_RegisterWMIFunc (int (__stdcall *whitemoveinputfunc) (char *)) {
f_wmif=whitemoveinputfunc;

[code]....

View 1 Replies

VS 2010 - Calling API From Resource Or External Place

Jan 15, 2011

In a program of mine, I have a resource (which is a textfile). This contains also vb.net code, It is resource which is binded to an .exe, with the mainprogram that I have. So the main program calls the resource, and the resource bind to an exe file.

I have this line:
Declare Function GetProcAddress Lib "kernel32" (ByVal handle As IntPtr, ByVal name As String) As IntPtr
In the source.txt and I want to replace this whole line by a string(or word) which calls this line from somewhere else. For example in another source.txt. A textbox is not possible because this is not a vb form, but a .txt-file. Maybe I can create another resource, which IS a vb.net form, call it or something? In this case. I can create a textbox with this line that I gave above, And I can use it by: textbox1.text.

View 2 Replies

Vb Calling Vbs Script Need To Stop External Cmd Window Showing?

Feb 21, 2012

How can i stop it from showing external cmd window.this is my code

HTML
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim mac As New Process

[code]....

it calls a vbs script i wrote which was converted to 1.exe file.when i press the button it calls it and send keysin external window i don't want this external cmd window to show was trying to get this command to work with fail?

.UseShellExecute = False

View 1 Replies

VS 2010 Calling An External Application And Setting Focus On The Same?

Oct 8, 2010

I am wondering if it is possible to call an application, say "notepad.exe" (among other application's that are already open) and setting focus on the same, so the user can readily start working on it.

View 6 Replies

Possible To Copy An Edit Control (win32) From External Program To Use On Own Program?

Jan 9, 2010

I need to manipulate an external edit control from with in my program. (IE: Get new text whenver it's being enter into edit control and parse the infomation in my program).So, is it possible to create an edit control in my program that base on the handle of an existing application using win32 api or something

View 4 Replies

Launch An External Program?

May 3, 2009

So I have my form, I add one combobox (combobox1) and a button that says "Launch..."Button 1's

Process.Start(ComboBox1.SelectedItem)

When you select a program from the combobox (combobox1) and click launch, it launches that program, for example, cmd.exe (command prompt) when I click the button, it launches the command prompt, but if I select a game (for example chess.exe, for vista), it says it can't find the file, this is because the search for the file is only: WindowsSystem32, how can I change that? OR, how can I add a reference that searches the WHOLE Disk, not just WindowsSystem32?

View 6 Replies

External Program Control?

Jun 29, 2009

I am using VB 2005. I am trying to open an external program, make it invisible, and then control it. It is fine if the external program shows up in the Windows Task Manager, but I don't want anything showing up in the Windows taskbar. I already know how to open the program I want to use. For that I am using:

Code:
System.Diagnostics.Process.Start("C:Program FilesSomeProgram.exe")

[code]....

View 12 Replies

Monitoring External Program?

Dec 25, 2010

I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process

View 1 Replies

External Program That Requires OTher Files?

Jun 8, 2009

So, I'm using shell to start up an external application at the press of a button, but the application requires several other external files with it in order for it to work. How could I make it work? Note: I'm a newbie

View 7 Replies

Get Some Text Form An External Program?

Apr 4, 2012

i am trying to get some text form an external program. Currently i am using this code:

Dim lngHWND As Long
Dim lngHWNDF As Long
Dim lngID As Long

[Code]....

I am getting values for both the lngHWND, lngHWNDF and the lngChild. However, they are only values (numbers) and not the text itself.

Here is an image of the program i am trying to get the text from:

How can i go about getting the text from those items it finds?

View 1 Replies

Laucnhing An External Program As Admin?

May 31, 2010

i wanna know how to launch an external program as administrator Like tick a tick box and it launchs the program as admin if you tick it and push the button.

View 5 Replies

Running An External EXE Inside My Program

Oct 11, 2009

What I'm wanting to do is gonna sound pretty strange. I play a game called Wonderland Online. Usually while playing, I will have between 3-4 instances of the game going at the same time, each instance running a different character. Also, I will have open another program that I wrote that helps me figure out what I need to manufacture a certain item in the game. The running game is an 800x600 window, and I have all 5 of these windows open at once, where I am constantly moving things around, minimizing and maximizing.I want to create a app that would basically be a frame for the game. Creating the frame would not be hard, but this is the first time I have tried to get an external EXE to basically run inside of my program. Is this even possible? And if so, I would imagine I could run multiple EXEs and flip between them inside my frame. I could integrate my manufacturing program into the frame, as well as control which instance of the game is visible inside the frame.

View 1 Replies

Running An External Program From Within A Form?

Jan 26, 2010

Some time ago I saw a code to host an exe from within a visual basic form, acting as its parent. How would I go about doing this in vb.net? I havent programmed in ages, but recently have gotten an interest again in order to complement

View 3 Replies

VS 2008 Control External Program

Aug 4, 2011

i have an external program, i got his and w.e else is needed.... i want to know how do i tick a checkbox from my vb.net program. to this external software. to tick this checkbox and then the checkbox will do what it supposed to do, and not just change the gui to ticked without doing a thing,

View 2 Replies

VS 2008 External Program Open?

Apr 21, 2009

I am using this code to open an Outlook 2007 application.

Dim psInfo As New System.Diagnostics.ProcessStartInfo("C:ProgramDataMicrosoftWindowsStart MenuProgramsMicrosoft OfficeMicrosoft Office Outlook 2007.lnk")
psInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized

[code].....

View 6 Replies

VS 2008 Get ProcessID Of External Program?

Mar 5, 2010

I've been doing bits of research, and im yet to find a direct way to be able to get the processID of a window like "notepad.exe",

View 5 Replies

VS 2010 Monitoring External Program?

Dec 25, 2010

I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process

View 2 Replies

Controlling And Manipulating Data In An External Program?

Jun 21, 2009

I'm trying to write a vb.net application that works with a 3rd party application called FuzzyTech. Unfortionalty FuzzyTech is quite old so the only way I can interact with it is buy using DDE. FuzzyTech acts as a DDE server. After a bit of research I found a library called NDde which enables me to use DDE. I understand that vb.net does not natively supprt it as it is an old technology.

Now fuzzyTech seems to only respond to the DDE connect and pokes when in debug mode. The only way I can find to get the program in to debug mode is from the menu bar (Debug > Interactive). So I have written an application that runs fuzzyTech, grabs the window and then accesses the menu to put it in to debug mode. My code can then use DDE. I have all of this working ok (although it does feel like a bit of a hack). The problem is I don't want users to be able to see this happening.

I want fuzzyTech to be hidden.After more research I found I could hide the window on startup by using fuzzypProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden. However when I do this my code to grab the window and send the menu commands then fails. I think this is because the window title becomes blank when hidden.So I need to know a way of controlling the program after it is hidden or hiding it after it is in debug mode. This is where I am stuck. I'm very new to programming and this has got me completely stumped.

Here is some of the code I am using:

Private fuzzypProcess As Process = New Process()
Private Sub LoadFuzzyTech()
Try
fuzzypProcess.StartInfo.FileName = projectPath & projectTitle & ".ftl"

[code]....

View 2 Replies

Forms :: Reading DataGrid From External Program?

Aug 29, 2011

I am working in windows forms with Vb.NET 2008. I am trying to read text in from an external program. So far I have been able to read text in from a standard text box or button, however I am trying to read data in from an external data grid.

When I try to use the following I get no information about the grid
ChildHandle = FindWindowEx(ParentHandle, IntPtr.Zero, "classnameofexternaldatagrid", Nothing)
Dim Hndl As IntPtr = Marshal.AllocHGlobal(2000)
NumText = SendMessage(ChildHandle, WM_GETTEXT, 2000, Hndl)
Text = Marshal.PtrToStringUni(Hndl)

Usually if it is a standard text box I will get the text data with no problem, but it is a standard data grid and there are no further sub handles to try and read from. If WM_GETTEXT wont read information from an external data grid then how would I read in the data?

View 3 Replies

Launching External Program Which Is A Virtual Keyboard

Feb 18, 2009

I can launch my external program which is a Virtual Keyboard, but once it launchs then I have to click the textbox on my form or no text appears when I use the Virtual Keyboard. How can I make my form be the focus after the Virtual Keyboard launches?

View 1 Replies

Release An External Drive After It's Been Accessed By My Program?

May 23, 2011

The VB.Net program in question creates several files, adds them into a zip file (using DotNetZip), and saves the zip file into a given directory (which the user chooses). This comes out just fine. But when I use it to save directly to my USB flash drive, I can't eject the drive without shutting down the program first.I've tried disposing the zip object (from the DotNetZip library), doesn't work. I also tried setting FileIO.FileSystem.CurrentDirectory to somewhere else on the machine, still no.

View 1 Replies

Set A Button To Run An External Program From A Windows Form?

Jul 19, 2011

I have a program that I am working on and I would like to have it embed and run an AntiVirus program , but I am not sure if this can be accomplished with the use of a button.

[Code]...

View 5 Replies

Startup Path Of A External Program That Was Dragged Over App?

Jul 27, 2011

Is it possible to get this information from a drag&drop Startup path of a external program that was dragged over my app? The process name of the external program that was dragged over my app? This is what I already got. Private Sub Main_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Me.DragDrop

[Code]...

View 12 Replies

VS 2005 : Finding Version Of External Program?

May 30, 2009

I know how to check for the version information from inside a VB2005 application:

Dim version as String= String.Format("Version {0}", My.Application.Info.Version.ToString)

That works fine. But let's say I have two applications, A and B. App A wants to find out what app B's version is. Is there a way to do that?

View 2 Replies

VS 2010 Placing An External Program Into Application?

Mar 26, 2011

I am placing an external program into my application. The current code is as follows:

Const SW_HIDE As Integer = 0
Const SW_SHOWNORMAL As Integer = 1
Const SW_NORMAL As Integer = 1

[Code].....

What I want is for "notepad" to open up maximized and without a border. I already have it maximized, but I want the border gone.

Also how can I make my current form the same size as the process?

View 2 Replies







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