Running Other Applications From Within Main Application?

Mar 16, 2012

I have created an application that will run several other Engineering applications from within it.

I have my main form which will have a button on it for each application that has to be run. All the other projects are complete and have their respective '.EXE' files, which I have added to the main project.

I have coded one of the buttons to start an application, this is as follows;

Private Sub btnCoordsCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCoordsCalc.Click
Process.Start(My.Computer.FileSystem.CurrentDirectory & "Hole_Coordinates_Calculator.exe")
End Sub

This method works OK and does start the application. So my question is; Is this the correct way to do it, or should I import the whole project into my main project?

View 1 Replies


ADVERTISEMENT

C# - When Deploying .NET Applications - Find Out What Zone A Share Is In Relative To The Computer Running The Application?

Jun 8, 2011

Using any version of .NET how do you find out which zone a particular share is classified under. I am having a problem identifying if a share where my referenced dlls reside is in the "intranet zone" or "internet" zone relative to some user machine that is running my .NET application. I suspect this is a problem because I am having a problem accessing referenced dlls from a share on some machines but not others. How can I tell which zone .NET is classifying that share in so I can adjust permissions accordingly?

View 1 Replies

Custom Sub Main For WinForms Applications?

Mar 3, 2011

I'm interested in building my own basic Application controller and ditching the Application Framework entirely.Never done this before (or even considered it) but now I'd like to be able to cut out anything that stands in the way of making my App compatible with both DotNET and Mono, for which Microsoft.VisualBasic.ApplicationServices is pretty famous.I start, or links to sample Main Modules for WinForms online? Seems like most of what I find is for Console apps.

View 8 Replies

Running Applications Within Applications?

Jul 24, 2009

Is there a way to, when a parent application is opened up, that at the click of a button, or anything of designated event, that this parent application can open a secondary one?

View 11 Replies

Get All Of The Running Applications?

Oct 20, 2009

How can I get all of the running applications? If I have to use Process.GetProcesses, then how can I determine which are applications (appear in the task bar)?

View 4 Replies

VS 2008 - Running Applications Besides *.exe?

Feb 22, 2011

i am having trouble executing applications that havent got the prefix .exe here is the code tat i mostly found in the internet can someone help so it will be able to play with all applications tried to make it play with msi but it wont play.

[code]...

View 12 Replies

C# :: Long Time Running Applications?

Jul 5, 2010

I'm going to design an Application (C# or VB.NET) which use .NET Framework to run for very long time. It may be restarted every year or even more...Is there anything (using special design patterns or so) which I must care about in designing "Long time running applications in .NET"?

View 3 Replies

List Running Applications(not Process) Using VB

Mar 14, 2010

Anybody have an idea to list running programs ; not all running background process. I tried following code, but which list all process names. eg: notepad.exe, vb6.exe, svhost.exe etc. but what i need is the running window based programs( with windows.)

1st method
Dim process As Object
For Each process In GetObject("winmgmts:").execquery("Select * from Win32_Process")
Debug.Print process.Caption

[code]....

View 2 Replies

Running .NET Applications Under EXCLUSIVE DOS Mode?

Sep 10, 2009

I developed an application I need to run exclusivly under DOS mode (no Windows), when I wrote the app I created it as a CONSOLE application, when I run this EXE under the DOS mode it says it can't RUN in DOS mode? Is there ANYWAY I can make this work?

View 5 Replies

Running Net Applications On Protected Network

Sep 7, 2009

I have seen that unsigned .net applications will not run on most college networks and as part of a school applications i am trying to let these applications run on a protected network. The app is written in VB 2008 and is signed strongly.

View 1 Replies

Starting Up Vb Express And Running Any Vb Applications?

Nov 19, 2009

i am a casual user of visual basic express 2008 and use Vista Home Edition Ive been using it for a while now, with no problems at all. Recently i started to take a look a WPF in my apps, again no problems.(visual basic express ran fine, debugging ran fine & finished apps ran fine)

However for some reason (and all of a sudden) i keep getting errors and none of my apps will start up.
The errors are:vshost.exe has stopped working (I get this when visual basic express starts)PresentationFontCache.exe has stopped working (I get this when visual basic express starts a wpf app)
(Application Name) has stopped working (I get this when running finnished apps)I've tried all the usual methods (Reninstalled VBE & .Net3.5)I cant see why it has stopped working all of a sudden?

View 7 Replies

VS 2008 One Array, Two Running Applications?

Nov 19, 2009

he lack of VB terminology in the following question - this is all fairly new to me. Anyway, on to my question.I have 2 seperate applications running and they both need to access the same array. Is it possible? If so, how?

View 2 Replies

VS2010 Running 2-3 Applications At The Same Time?

Mar 21, 2012

I have created a main application form that has buttons that start up various other applications.

Following advice on here from a previous post, I have imported all the files of each separate application into the main application.

There will be times when the user wants to run more than one of these applications at the same time. I know you can just import the '.EXE' file of each app, and you can then run several at a time. But because I have all the files without the .EXE, you can only run one at a time, you have to close one app to start another.

My question is simply; Do I have to import the .EXE file of each app, or is there some code I could put in my main form that will allow me to run more than one app at a time? (the reason for having all the files of each app is so you can make any alterations without having to open each app separately).

The code below is a typical code for one of the applications start buttons, all the buttons codes are the same, apart from the app name, the buttons are imported, so not standard buttons.

Private Sub btnCoordsCalc_ClickButtonArea(ByVal Sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles btnCoordsCalc.ClickButtonArea
Dim frm As New frmHoleCoordinateCalculator

[Code]......

View 2 Replies

2008 - Sub Main() Not Running?

Feb 26, 2009

I've added a sub main to my project, but no matter where i put it, it never runs.

I've tried in the main form with : Shared Sub Main() with and without the shared word

In a module and in a class. In vb.net 2003 it worked, so that must be some configuration Even with a test like this

Sub Main()
console.writeline("Test")
End Sub

View 9 Replies

Filter Out Certain Applications Running And Output To Listbox?

Jan 29, 2009

I'd like to ask assistance for the following scenarios below:

1. I want to check whether certain applications are already running or not.
2. The applications i need to check are the ff:
a. MS Word
b. MS Excel
c. Notepad
d. MS Project
e. MS Powerpoint

3. If any of these are running, the window title of that application will be filled-in in a listbox.

View 2 Replies

Reflection Instances To Get A List Of Applications Running

Jun 18, 2009

I have created a simple windows forms application. I would like to be able to connect to that running application and view certain properties from a seperate windows form application. In VB6 I would have run the first application and then called GetObject to connect to the instance. Does anybody know how I could do this in .Net. I'm guessing I'd have to use reflection to get a list of applications running and then somehow connect to them but I'm not sure how to do this?

View 5 Replies

Running VB Dotnet Applications With User Privileges?

May 17, 2009

I am running a client-server application and am having problems with privileges (I assume). The application is developed using 2005 Express. The Client is running Win XP Home whilst the server is running Win 2003. When the user on the client has Admin rights on the local machine, everything is OK; however when the user has only User rights, an error occurs: VB will not run.

View 14 Replies

VS 2008 Getting Detail Of All Applications Running In Windows?

Jun 10, 2009

I want to get the detail of all the applications running in windows like

Application name : Status : User : Resources Usage : etc....

also I want to get the detail of all the users logged in at a time

View 7 Replies

VS 2010 Running Applications Using Local Admin?

May 12, 2012

I am wondering if it is possible to run an application from a domain account that has restrictions on running .exe files by coding in the local administrator details (username / password).

View 3 Replies

[2008] Running In Main Thread?

Mar 2, 2009

Well basically I have something being done in a new thread and I would like to start a sub not in the same thread, but in the main thread. How do I do that?

View 3 Replies

Scan All The Processes (applications) Running In A System Before Starting?

Jun 7, 2012

i would like to scan all the processes(aplications) running in a system before starting my program. and also need to close some programs before starting my program.how to read all the processes ruining in a system one by one.

View 1 Replies

Multithreading - How To Ensure That A Code Is Running On Main Thread

Jan 21, 2012

It's easy to do so in objective c but I do not know how to do so in vb.net update:I know about control.invoke. But control.invoke requires a control that may change from program to program. What would be the easier way?So yes program is winform. However I need a solution that does not depend on any specific control. If that's the case actually I do not need things to be run on main thread do I?

View 2 Replies

Get A List Of Running Applications On A Computer Similar To What Task Mangager Does In Windows?

Jul 22, 2011

I know this code will give a list of processes
ListBox1.Items.Clear()
Dim ProcessList As System.Diagnostics.Process()

[code].....

View 3 Replies

Forms :: Access Main Form From Second Thread Running In A Module?

Jun 22, 2010

I was a vb6 user, done a few projects only with forums Now i am moving to vb.net(vb2010) and i have some trouble.Lets say we have a form(form1), a module(mod1) and a textbox on the form1.

i want to start a Sub (DoWork) in the module but in a new thread.

Dim Thread1 As System.Threading.Thread
Thread1 = New Threading.Thread(AddressOf mod1.DoWork)
Thread1.Start()

The DoWork sub does some stuff and when it's finished i want to change the text of a textbox1 in the main form and start another sub (DoWork2) on the main form under the main thread not the one DoWork is running under.

Plese do not refer me to another post that mighe give me a part answer, try to explain to me what i have to do and why.

View 3 Replies

Make An External Application 'child' Of Main .Net Application

Jan 23, 2010

I use SetParent to make an external application a "child" of my Main .Net application. This works fine.What I need to know is why can't I use Me.MDIChildren(0)I thought that using SetParent would increase the number of children by 1, thus allowing me to reference it with the above code, but it shows there are no children in the array.I have been trying, without luck, for 2 days to try to maximize an external app being displayed in my app. I can get it to display, but I would love it if it could Dock to the same size as its container (a panel)

View 3 Replies

Application Running Fine On XP But Same Exe Not Running In Vista?

Apr 24, 2010

I had done one application using api which send the message to given number. The working of software is very fine without any error working on windows XP SP2. I heard that vista already contain the .net frame work so didnt installed .net frame work in machine. I checked in vista it shows .net frame work is in machine. But when same code i tried to run on Vista it gives the error. Error is as follows

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SmsSendingApplication.frmSingleMessage.InternetOpenUrl(Int64 hInternetSession, String& lpszUrl, String& lpszHeaders, Int64 dwHeadersLength, Int64 dwFlags, Int64

[Code].....

View 7 Replies

The Last Change Wasn't Successfully Persisted.Please Shut Down The Running Application. Sending Message To Designer Failed.Designer May Not Be Running.''?

Jun 4, 2011

what account for this error message in ls beta 2?'' The last change wasn't successfully persisted.Please shot down the running application.

View 1 Replies

Console Application Versus GUI Applications?

Aug 9, 2010

I have a few questions regarding the GUI applications.I am aware that Console applications are non-event based programs which do not have the pretty GUI interface.Having done C/C++ on *nix with a main() as the entry point and in Windows 3.1 with WinMain as the entry point into the application, I am trying to figure out the entry point into the VB application.

View 4 Replies

Sharing Application Settings Across Many Applications?

Apr 28, 2011

I have several different applicaitons that were originally created with Visual Studio 2005 / .net framework 2.0 / Windows XP that got common settings from an App.Config file on a network share. Each of these applications has an app.config file with the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="\fileServerconfigcommon.app.config" >
</appSettings>
</configuration>

I am now trying to make these applications work in a Windows 7 / .net framework 3.5 / Visual Studio 2008 environment and can't seem to access the settings in \fileServerconfigcommon.app.config in the same way the old environment allowed. I'm wondering if there is some new way to do this. I need to have the applications read their settings from a common file on the network share (having the applications take their own copy is not accpetable).

View 5 Replies

.net - Store Application And User Settings Of An Application Running With Multiple Instances?

Jul 12, 2011

Which is the best way to store application and user settings of an application running with multiple instances?My problem is that using the vb's "Application Settings" one instance would overwrite the other one.I want to identify each instance with a number passed via command line argument. I could use this number to identify the appropriate settings of the running instance, but I see in a local INI o XML file a better way to handle that.

View 1 Replies







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