Open A Vb.application From Another Vb.application With Parameters?
Jul 19, 2010
i have 2 vb applications. this is the code for the first one which when a button is clicked it will check if the other application is already open. If not, it'll open that application -
Dim sComputer As String
sComputer = Environ("COMPUTERNAME")
Dim LocalByName As Process() = Process.GetProcessesByName("ticket.prices", sComputer)
[code]....
this runs fine. but what i need is that the customerid on the application 1 that is calling application 2, should be transfered while opening app 2.e.g -Customer 10001 screen is open on app 1. When i click open app 2, the above code runs and opens app 2. how do i make app 2 open to customer 10001 screen. Is there any way to pass parameters while opening app 2 in System.Diagnostics.Process.Start ?
View 2 Replies
ADVERTISEMENT
Sep 12, 2011
With the click of a button I want to open a rtf file embeded in the application itself.
how can I do this?
View 1 Replies
Nov 12, 2011
How to open an application from 1 button (not to open the application, only to select it)
Example: 1 button> when it press to display only .exe file for choose
View 16 Replies
Nov 16, 2009
What is the code to open a folder or application in a vb.net application?
View 2 Replies
Aug 18, 2010
we have an old vb6 application (let's call it app-vb6) that basically handles database searches. now i created a new .net application (app-dotnet) that can use the database information to do something else.
what i want to do is to be able to run app-dotnet using information obtained from app-vb6 (which would send something like a command line with a few parameters). but i don't know how to make only one single instance of the app-dotnet to refresh information every time app-vb6 calls it. this link [URL].. seems to have the answer but i could not follow it since it is VC.
View 2 Replies
Apr 21, 2011
I'm working with an app that starts at OS startup. Is there any way to know if the app was started from system startup or from a manual execution?
My current attempt (won't work):
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
rkApp.SetValue("Low CPU Detector /fromStartup",
[Code]....
I also read this How to detect whether application started from startup or started by user?
View 2 Replies
Apr 6, 2009
I have created a database with on table that is very similar in setup to ProductCostHistory from the Adventureworks database. Using the adventureworks database as an example, when the procedure is given the parameters of date and productID it will change the EndDate of the currently active cost to the date value and insert a new record with productID as the ProductID and Date as the StartDate, leaving EndDate null for the newly inserted record. I am looking for a way to create a simple form with two textboxes and a button. textbox1 accepts the ProductID parameter and textbox2 accepts the Date value. when the button is pressed, the stored procedure is executed and the table is updated. This seems pretty simple and I am very familiar with tieing stored procedures to a table in a dataset when each prcedure handles only a single simple action (either, SELECT, INSERT, UPDATE, or DELETE but not a single procedure that combines UPDATE and INSERT as the procedure described above does). I've done some reading and played with this on myown but can not find the simplest straightforward way of accomplishing this seemingly simple task.
View 2 Replies
Nov 27, 2011
I want to open up an existing instance if my program is already running only if its running the same version.I noticed that this question was asked for only if the name exists, but what if the version is older, I just want to notify the user that an older version is still running, "please remove older version before starting this version."The other link is this one:Return to an already open application when a user tries to open a new instance but they don't talk about closing an instance if an older or newer version is detected.
View 3 Replies
Oct 2, 2009
Currently working on a web-service with Oracle10g as back-end. Here is my problem.
1. The table I need to populate has 100 columns. I have no control over the design of the table.
2. I wanted to use the "deriveparameters" method of OracleCommandBuilder, but found out that this is "costly" in terms of performance. What I initially planned to do was to derive the parameters from an open connection, close the connection, then maybe cache the parameters obtained but I don't know if this is possible.
I am unsure how big of a hit the performance will get if I continue using the "deriveparameters" method WITHOUT caching the parameters driven. The environment is as follows
-intranet
-around 2000 users
-users spread out in different parts of the country
I am not familiar where they will put the web pages of the application, the web service and the database. I don't know if they'll be putting it in different servers or on one server, but that's something we cannot control too, that's why I am looking for the best approach.
I just don't want to hard-code all that parameters and if, for instance, we need to change some properties/parameters, it will be a pain to maintain the code. It would be nice if someone here can point a way to automate the whole thing w/o the performance of the system taking a hit.
View 3 Replies
Jun 8, 2012
I have a stored procedure that takes in 2 parameters and returns an integer value. I would like this value to be the value for a gauge chart on the page. The 2 parameters will change depending on the attributes of the selected item. Is there a simple way to pass the one value from the stored procedure to the chart to display? This will be embedded in an asp.net application (vb) - so depending on the previously selected item, the values for the parameters and result will change.
View 1 Replies
Jun 9, 2011
I have little problem to open any url link from my application i have placed a textbox and a button on the screen. what i want is any url which i write in the textbox and when i press the button automatically that url would open in the browser.
View 19 Replies
Jun 1, 2012
I was wondering if it is possible to check if a specific application is running when I open up a form.
If the application is running I want a label to say running, but if it isn't running then the label will say closed.
View 2 Replies
Jun 3, 2010
I would like to close my appliaction and then open it based on a condition.Lets say I have a Lab1.EXE file, I want to close if the flag = True and then reopen it.
If ClFlag = True then
Application.Exit
---Then
RUN LAB1.EXE
Endif
View 9 Replies
Mar 5, 2012
I made a vb 2010 project that in turn is pretty dumb, just one that you click a button to open the file that the button contains.... but all i know how to do is basically open .exe files, image and audio files, but i would like to know how to open anotherpublished project of mine by clicking a button.
View 1 Replies
Jan 27, 2010
I my window project (vb.net 2005) , there are 20 forms. I want to open particular form when Press F2 when my application is running
View 1 Replies
Mar 10, 2010
I am making a Movie Launcher for myself, because i have a **** load of movies :P (They are all digital). Now it's working fine, but i have a question.
Some of the movies have a VIDEO_TS folder, witch i need to open in VLC player. How can i let a VB application open a whole folder (so the VIDEO_TS folder) in a program like VLC?
View 1 Replies
Mar 28, 2009
I have to write a macro which should run a .BAT file and
should enter username and password. click on 'OK' button. click on other buttons available on the application.
how can i do all these things from excel VBA.
View 1 Replies
Jun 20, 2012
I was if there is a way to open a application in a texbox or something similar on the form
View 8 Replies
Feb 22, 2011
My application commits data to the database via OLEDB and I have no problems with that, but I'd like to be able to have a feature of my application which will enable me to open the database.accdb and display a query/report which already exists within the db.
In the old vb5/6 days this would be as simple as executing msaccess.exe and passing it over the filepath/report name in one string.
This has problems, what if the install path of access if different? Is this even supported in .Net ?
View 3 Replies
Feb 23, 2011
How do I add a button which, when clicked, will load a .exe from a location on my program files? And then to close the form app after the .exe is loaded?
View 2 Replies
Jun 3, 2011
I have an application that will take in specific details from the customer and generate a URL address with query string items.I need to open up an internet window that will navigate to that URL?
View 1 Replies
Jun 23, 2011
I have an application that will take in specific details from the customer and generate a URL address with query string items.
View 5 Replies
Feb 2, 2012
I have a menu with a lit of mp3 files, once I click on a name it should open and run mp3 file using the default player (example windows media player), I searched and found how to do that but within the application which I don't want.
View 1 Replies
Jun 22, 2007
How i can open pdf file in vb.net applicatin?
View 19 Replies
Feb 16, 2010
There three way to open PDF in .Net Window Application
1) Process.Start
2) MS Browser Control
3) PDF Com Copmonent
I do not want to use process.start (coz it not open in same window)
in 2 and 3 there is a big issue with focus. Both the control grab the focus
View 1 Replies
Oct 27, 2009
When a user closes my application, I want to display a message asking them if they really want to do this, and display a yes/no option.
If they say yes close the whole application If they say no keep the application running
Here is what I currently have:
vb.net
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
[Code]...
I am not sure if I am on the right track or not using "FormClosing" and if they say "no" how do I keep this application open?
View 4 Replies
Oct 12, 2011
I'm looking for some WPF applications specifically designed for touch. Preferably they'd be open source. I don't really care about the apps function, I just want to get some design ideas for a Win7 WPF touch app I'll be writing. I'd like to see what can be done with WPF touch.
View 2 Replies
Mar 2, 2010
I have referenced this thread and the website it points to:pening a file in my application from File ExplorerAs of now, I can't get My.Application.CommandLineArgs to work properly. Any time I select an file to open in my program I get a windows error forcing the program to close. I only want to get the file path from My.Application.CommandLineArgs and pass it to a function that will then parse the file (a text file of various extensions, even if it is not associated with my program) and display the contents in a RichTextBox.My function to open the file is complete and works, but if I try to use My.Application.CommandLineArgs on a file the program crashes immediately.here is the code I'm trying as a test:
Private Sub ParseCommandLineArgs()
If My.Application.CommandLineArgs.Count > 0 Then
MessageBox.Show(My.Application.CommandLineArgs(0))
[code].....
View 1 Replies
Jul 31, 2011
I have a program I made in vb.net express 2008 that used java.utils.zip to compress my work files to a Zip archive that I ran occassionaly to have a backup. I worked fine, but with net framework 4 and vb.net 2010 it doesn't work. So I modified it to use sharpziplib and it works fine if all files on the filter list in the folder are closed, but if I have a file open in OpenOffice writer, my program can't access it and won't create the zip file. The file that usually stays open all the time is my TODO list, that is updated several times a day , so usually gets printed, and updated( adding or deleting entries), without closing it.
[Code]...
View 14 Replies
Apr 5, 2011
had i problem when re-open the program.
all the data that i saved into the database gone when i close and re-open my program.
is this error come from my code or my database...?
this is my work.
Imports System.Data.OleDb
Imports System.Data.Common.DbConnection
Public Class Borang_Pendaftaran
[Code].....
View 2 Replies