Calling Another Application From Within A VB Program?

Feb 9, 2011

I have written a VB Program for calculating Power requirements for Heating Water, Air etc. There are some standard formulae, which require inputs in fixed units. The user may have data in other units, which will then need conversion.Example: Formula needs Airflow in Cubic Meters/ Minute, where as user has data in Liters/Second.I do not want to write code to do Unit Conversions from within my Program. There are readily available FREE Applications for doing the conversions. I have one such Application, which I want to bundle with my VB program.How can I Code in my program, so that when the user clicks a Button " Unit Conversion ", the bundled program will open.This is like clicking on a Hyperlink in a Program or Document and a Web Browser opens.

View 1 Replies


ADVERTISEMENT

C# - Calling A Method In A FACTORY Class When Application Is Closed / Disposed Without Using Application's Dispose() Method

Mar 28, 2012

I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:

[Code]...

View 2 Replies

Calling A Different Program All Together?

Jan 8, 2009

i just wanted to calafiy i know how to call a different sub and everything but i wanted to know if you could call a different program all together.

say you have on the first WITCH POWER DO YOU CHOSE. then they hit NEXT and it takes them to a whole new layout and program like saved in a different folder.

i think you do this like you would with webpages

Call ../folder/folder/frmbladeda

if thats wrong or there is an eazyer way also would i do the same thing with varibles like how you do Call addtogether(strone, strtwo) addtogether would be the private sub and strone and strtwo would the the varibles in that said sub.

make sure i want to call a different program like 3 folders away

View 2 Replies

.NET Application Hangs When Calling DLL

Dec 28, 2010

Its been running in production for over a year and this is the first time I saw this behaviour. The application is a VB.NET Console Application which is triggered by MQ server. This application uses a class library which is part of the same project(Say 'abc.dll'). In production around 40+ instances of this exe are running and all of them use the some of the functions from 'abc.dll'.

Last week, we noticed that all the 40 instances were shown to be running in the task manager but they were not doing any activity. There was no exception thrown or error logged in Application logs or System logs. To frantically debug the problem, I tried isolating the problem.

With all these 40+ exes hung up, I wrote a small aplication which would use a reference to this 'a.dll', create an object of one of the classes in that dll and execute a method in there. I was printing console.writelines in between to see to which point it gets to before erroring out.

To my surprise, I found that at the point where I was creating an object of a class in 'a.dll' this sample test application would also hang just like the others. No exceptions thrown. So I killed all those applications as a last resort and then when I restarted all of them, everything worked fine.

I couldn't find any explanation for this behaviour. Since it was a critical error affecting a production system(blanking out the application for 3+ hours), I have to give a very good explanation as to why this would occur. how it can be prevented in future.

(Side note: the servers running these appilcation do not have a maintenance schedule and are supposed to be up for couple of months together.

View 11 Replies

Application Calling Fortran Exe

Nov 18, 2010

I am running one fortran exe in .net application(calling from command line with the help of system diagnostic process). If we directly click on fortran exe, it shows inputs to enter for fortran in command window, after input entered it gets executed. We want same behaviour but want to run fortran exe from .net application, If we click on button in vb.net form, this exe should get called and should show inputs to enter on the command line, once inputs entered it should execute. How to achieve this with .net application? Right now, after clicking on button in vb.net form, exe get's opened in command window, but it is blank, and gets hanged. [code]

View 1 Replies

Calling Asp.net Function Within Web Application?

Oct 26, 2011

Is it possible to call a function within an asp.net web application from outside that application e.g. with VB.net? If so it would be great to see a hello world type example.

For arguments sake lets say I have my function "helloworld" in a class file within web application: [URL]

My ultimate goal is to enable some reliable / robust scheduling of functions within asp.net. I have read multiple examples about using web services / custom services running on the server etc but I don't really get the implementation.

View 2 Replies

Calling IBM UniVerse Application?

Dec 9, 2010

I have developed IBM UniVerse application before. Now I am developing a .NET application that I want to call the UniVerse application?

View 1 Replies

Calling JS Function From Application?

Jul 6, 2009

I am working on an desktop application in which I am using WEB BROWSER component. There is a Javascript function within the webpage I want to call from my vb.net application. I am not attaching any code with this post because I couldn't find anything relevant on internet as all example involve asp.net server controls, no VB.Net desktop Application example.

way out to call JS function of the webpage loaded in the browser component through VB.Net Form Button.

View 1 Replies

Get GUID From Calling Application?

Nov 29, 2010

I have multiple applications that will be calling a DLL.Is there a way to get the GUID from the calling application without passing it?I would like to use the GUID to verify the parent application and open up rights within the DLL for a specific app but not others.

View 3 Replies

Calling A Program In A Timer In Vb?

Jul 8, 2011

I am facing a lil bit of problem and my problem is I am calling a function in a timer device, and that function reads the data from the data base what it actually does is, first the timer capture hotkeys pressed from the keyboard and then calls a function Readit() and in Readit() it actually compares if the key has some data associated with it if it has some data it reads that data into a a variable buff and sends it to the active window whichever window is active.Main problem is my function won't stop reading and sending the same data to the active window,

[Code]...

View 1 Replies

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

Calling Fortran DLL Program?

May 11, 2011

have problem with calling a Fortran DLL from VB.net Program. The VB program provide the GUI while the Fortran DLL does the calculations.The Fortran DLL opens and reads from data files supplied by the VB program. however, DLL program displays a message that says it can not open the file.

View 1 Replies

Calling Procedure In Program

Apr 17, 2011

I have a program where I want to call a procedure. The program allows users to enter a salary in to a text box, and than displays it in a label. I have everthing going fine expect getting the main function, which would be displaying the salary. Here is the code i already have:

[Code]...

View 3 Replies

Calling A Method From .dll Globally In C# Application

Aug 26, 2009

I am using a .dll called Kiosk in my application which is resonsible for disabling some keyboard keys. I am doing like this... using Kiosk; public static Kiosk.Kiosk KIOSK = new Kiosk.Kiosk();

[Code]...

View 2 Replies

Calling Some Default Windows Application

Jun 3, 2011

If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference?

View 6 Replies

.net - Calling New StackTrace Blocks When Closing Application

Sep 12, 2011

I just did some analysis by using a global function which is called GetCallingMethod in my case.

Mostly it works great. But some cases the application is blocked. It is blocked when closing the application. When going to "pause" in Visual Studio, it stays on the new StackTrace line forever.

In my application I am using third party references, multithreading and several classes. But all that should not be a problem and should not lock the tracer class as far as I imagine. I am using Visual Studio 2010 Ultimate in this case.

This line will never be left in development area. Application will is frozen. Try/Catch will not force the procedure.

View 1 Replies

Application Crashes When Calling Embedded Resources?

Jul 3, 2009

I'm writing a console application in Visual Basic 2008 Express. I added several text files to my project as resources. Specifically... I went to my project's "Properties" page and selected the "Resources" tab. I clicked the "Add Resource" dropdown and chose "Add New Text File". I entered some simple text and saved the file as "Welcome.txt". I built the entire solution.n my code, I use console.writeline(My.Resources.Welcome) to display the text

View 1 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 Another Application And Activating Its Menu Click?

Nov 2, 2006

it is possible to code to a call another application and activate its "Tool" menu click.I am enclosing sample exe (this is the application that has to be called; and its "Tool" menu has to be acitivated, which fires a messagebox event")

View 39 Replies

Calling Javascript Function From Within Desktop Application?

Jun 24, 2009

I'm trying to do something which i am not sure is possible, im hoping someone will be able to prove me wrong.I have a desktop application written in VB .net which needs to post to google analytics, the interface they provide is javascript based. At the moment my application opens an internet browser, goes to a specified URL which in turn executes the javascript contained within, this is cludgey and memory gobling!

Is there any way of importing a javascript file and calling a javascript function without opening a third party browser? would preferably not want to use the browser control either.Is there a way of instantiating for instance a javascript engine and passing it the commands?

View 2 Replies

VB: Get Compiled DLL's Calling Application Info; COM Security?

Oct 15, 2010

Through COM, one can potentially gain absolute control over a target system. For example: using javascript's ActiveXObject object in IE, one can create certain objects which were designed to have direct access or interaction with system properties and files.One would think common sense dictates users disable ActiveX features in IE immediately after installing the browser to ensure their system is protected while surfing the net, or at least paying close attention to which websites they permit. But, I doubt many average PC users know how or why to do this, or just get tired of mirco-managing it over time. I think any PC user or admin my COM class caters to would greatly appreciate not having to deal with that. Thankfully it looks like IE versions come packaged with ActiveX disabled by default nowadays.

I've built a very versatile COM class library in VB. I didn't intend for it to be callable from any website, but that feature is just part of the COM platform. I'd like to prevent the library from being called from IE unless the website is on a white-listed domain to proactively protect the user (and ultimately their entire intranet) from harm from malicious websites. What would be the best method in VB.Net to tell which application called my DLL, to be able to tell if it was called from any command or process originating from IE? And, what domain called my dll? System.Environment.GetCommandLineArgs()(0) gets me the calling application path. With this info, I can compare it to a black/white-list of applications.

View 2 Replies

Ascii - Calling RPG Program And Cwbx Stringconverter

Feb 25, 2011

We have a program on our AS400 that takes in a number, encrypts it and then passes the encrypted characters back. Using the CWBX stringConverter.FromBytes method... I am able to convert the numberic byte / ascii code value, into its appropriate character. This has been working fine for a while, until we noticed some values getting cut off. The byte array returned looks like this:

[Code]...

View 2 Replies

Calling PythonFunction's From A VB Application Hosting Iron Python

Apr 17, 2012

I'm a C++ programming who was tapped to write a small application in Visual Basic. The application hosts an IronPython runtime and I am attempting to define some function in python and then call them from VB. I have written a simple test function in python

def test():
print "Test was Called"

Then I use the iron python to create a ScriptSource from the python file. I am able to look up the "test" variable through object operations but I can not figure out how to call the object that. For example (in VB):

pyScope = engine.CreateScope()
pySource = engine.CreateSourceFromFile("C:SomeFilepath est.py")
pySource.Execute(pyScope)

[Code]....

I am able to call the function and I see the expected output at stdout. I am still under the impression that there is some function-pointer-like type that I can cast objects of type PythonFunction to which will let me invoke temp directly without calling to the Python engine.

View 2 Replies

IDE :: Calling WebHelp From Application And Displaying Table Of Contents?

Oct 28, 2010

In my vb.net application I call the main page of WebHelp using

System.Diagnostics.Process.Start(

[URL]

The web page displays just fine, but the Table of Contents, Index tab and Search tab do not display at all.How do I get them to show when calling help from vb.net?

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

Link Process Opened By A Program So It Dies When Calling?

Jun 9, 2011

Is it possible to link a process (i.e. osk.exe) opened by a program so it dies when calling program dies?So, I start my application, it starts OSK.EXE, and if the program crashes, the on-screen keyboard is still there. Possible to link the two so that the process dies when the application dies?

View 10 Replies

Calling .dll Method From Inside A Timer Won't Work(Console Application)?

Nov 26, 2009

I have a .dll file (Interop.ACTMULTILib.dll) that I use to connect to a PLC. This .dll contains a sub called ReadDeviceBlock2(byval devicename as string, byval size as integer, byref data as short). When I call this method in my main it works fine, if I call it from another method that was called by main it works as well.However, it doesn't work when I call it from my Timer_Elapsed sub? I guess this has to do something with threads but I can't figure it out.

Module Main
Private Timer As New System.Timers.Timer
Private PLC As New ACTMULTILib.ActEasyIF
Private DataSet As new DataSet[code].....

View 1 Replies

C# - Stop Developers From Calling System.Windows.Forms.Application.DoEvents()?

Mar 15, 2009

We just spent 300 man-hours fixing a buggy application in the field. It all came down to calling Application.DoEvents (re-entrancy problem).This was not caught in design reviews, code reviews.The code was inserted two years ago with the first version; the application was always "flaky" but recent changes exposed the re-entrancy problems to a greater degree. This incident is the second time in our organization that Application.DoEvents caused failures and multi-man hours of debugging.It was discovered in this case by simply noticing the call,buried way down in a complex event handler for an asynchronous task.What do you suggest to prevent this issue from happening again:

Add checkin gates to source control?

Developer training?

Code Analysis rules (why is this not already a built-in rule?)

How to I enforce a coding practice?

View 8 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

.NET Application Receiving 503 Service Unavailable Error When Calling Web Service?

Apr 28, 2009

This is a bit of unusual problem that I'm experiencing, but recently one of the users of a production application started reporting errors in the system. These were traced to a 503 Service Unavailable error when making a call to a web service used by the application.

Now here's the odd part, only the one user is affected by this issue. Other users of the application have not reported any errors. When the user logged on to a different machine that worked for another user, they still received the error.

View 1 Replies







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