VS 2008 Keep An Application Open
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
ADVERTISEMENT
Apr 20, 2010
I have an application which read data from Excel sheets when I drop them into one of apps forms.Is it possible to write an app. with which I will be able to use "Open file with", and the result will be the same as when I drop a file into a form?And is it also possible to add this option to the context menu strip of files with specified format?
View 12 Replies
Dec 1, 2009
how to code a button to open a windows console application with it's usage eg. 'Sample.exe -d file.txt' where sample.exe is the console app '-d' is an option of it's usage and file.txt is just a file which sample.exe runs like it has to run from the given commanding option(-d)..
View 3 Replies
Mar 22, 2010
I have a pdf that I want to be able to open when a button is clicked within the application that I have built in Visual Studio 2008 in .Net.
View 2 Replies
Dec 23, 2009
my application will remain open after closing every form. This is a recent issue in previous versions my application would close. I call dispose(true) on all form closing/closed events. (some forms require it on closing instead of close because of some custom made classes.)?
View 5 Replies
Oct 6, 2009
Am looking for away to have an area in the application window to display the open files and folders basically what�s open on the task bar.Also if the above is possible is there away to have this clickable so if something is minimized it will open upon clicking it.
View 1 Replies
Mar 25, 2009
Stupid question, but how do I get access to this Explorer? The says: To create a performance session for Windows client application:
(1) Open the solution in the Visual Studio IDE.
(2) On the <B>Analyze</B> menu, click <B>Launch Performance Wizard</B>.
(3) From the <B>Which of the following available targets would you like to profile?</B> drop-down list, select the name of the application that you want to profile, and then click <B>Next</B>. You can add more binaries later.
(4) Accept the default Sampling profiling method, and then click Next.
(5) Click <B>Finish</B>.
Only problem is that there is no <B>Analyze</B> menu in the IDE.
View 1 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
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
Dec 30, 2009
why i can open my .exe project and when i send to my friend when he press on the exe it shows this the application failed to initialize properly (0x0000135) you dont know why ? ...
View 2 Replies
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
Oct 21, 2009
In my program, I have a timer with a inteval set to 1000ms. The timer is executing a MySQL-command, and right now I'm opening and closing the connection each time.
View 5 Replies
Feb 23, 2009
How I Can open the same form in my application one time only can not open the form tow time in same time
View 5 Replies
Nov 16, 2009
What is the code to open a folder or application in a vb.net application?
View 2 Replies
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
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