Application Does Not Stop On Close?
Nov 12, 2009vb.net application, when the user closes the last form (the code is me.close) the application looks to stop, but it is still running in taskmanager?
View 17 Repliesvb.net application, when the user closes the last form (the code is me.close) the application looks to stop, but it is still running in taskmanager?
View 17 RepliesGuys anyone know how to stop or close a running program remotely through a vb.net program? am already aware on how to run or open one using the System.Diagnostics.Process.Start method. I would be needing it in my next projec
View 8 Repliesi have a small sample seral comms sample project and its working great .however i want it to run such that it will run continually 24 hours a day and not stop. I do not want any unauthorised persons to close the system, or stop it in any way.
View 4 RepliesCan anyone tell me how to close a topic or how to stop replies?
View 1 Repliesi have a small sample seral comms sample project and its working great .however i want it to run such that it will run continually 24 hours a day and not stop. I do not want any unauthorised persons to close the system, or stop it in any way
View 2 RepliesWhat I'm trying to do is your basic "You have made changes... yes/no/cancel" messagebox to show during a form closing event, and when they click cancel to stop the form from actually closing (Whereas yes would save and close, no would just close).
[code]...
How can I close or stop a thread. For example
Dim trlisten As Thread
Is it trlisten.Stop? or trlisten.Close? or what?
It seems like whenever i click my close button the application will close but the debugger is still in active.How to exit this debugger? :)
View 2 Repliessometimes, when I use Form.close() when debugging my program, although the form is closed, the application is still running. I noticed this behaviour when using the msgbox function.
View 3 Replieshow to use windows calculator in vb.net 2008?
use System.Diagnostic.Process.Start(calc)
its working but i want when application close it also close this calculator how?
I am trying to make an application with a start button and a stop button on a stop watch program. These are the codes I am using but my seconds on the stop watch don't start.
Public Form Dim intSecond As Integer = 0
Form 1
Private
Dim intSecond As Integer = 0
intSecond +=1
[Code]...
After I write my code and try to run the program, the seconds will not start,
Need help removing a copy of my program shown on the Task Manager after I close.
I must kill a conflicting program that cannot share the COM port and then reinstate when myprogram ends. To reinstate I use: System.Diagnostics.Process.Start(conflictingPath & conflictingProgram)
In the last line of my Form1.Closed I try to end all with:System.Windows.Forms.Application.Exit()
Not working - each time I run this program it does kill the conflicting program, can do its dialing function and upon closing reinstates the conflicting program. But each time another copy shows under Task Manager.
I want to make a Hidden Application,my application Block Unwanted software or Application
View 13 RepliesI'm currently in the process of building a text editor type program, and have run into a brick wall. I haven't done VB in years, so I may just need a little reminder on some things. I have coded everything so far as far as opening files, saving them, changing fonts, colors, etc. However, I'm looking to add a Close button to my menu strip that will just close the currently opened file, and not the entire program, while also ask the user if he/she would like to save before closing the file, and then if they select yes, it will show the save dialog, and if not, it will go ahead and close the currently opened item.
View 2 RepliesI try to transfer a vb6 application to vb2010. In the vb6 I start with a login panel that the user enter uid and password autenticate with the DBServer if ok show application main menu and close the login form. the order of the me.close() after the mainform.show() does not change, The application ends.
View 5 RepliesI have a windows forms application that has no form and it runs in the background. It using a webbrowser control to get information off the internet.The program is that when I add the event handler:webbrowser.documentcompleted the program just shuts down. If i put a message box after the event handler then it works just fine because the webrowser has time to load the document. How can I do some like console.readkey that you would do in a console application?
View 11 RepliesI have an application in wich I have included a timer wich close automatically the application when no activity is detected.My problem is that when I make 'some activity' like accesing something, I do not know how can I reset the timer to 0.
View 10 RepliesI have something to ask again.. I develop a program that will send bulk messages but the problem is that when I load at least 1000 emails then I want to stop the application I cannot stop it. Is there any way to stop this application without closing the form? So that i can save the file on my listview? Here is my code upon send bulk emails. [code]...
View 6 RepliesI have created a small program but the code is quite big.
I have a start button that when clicked it runs the script in a private sub called start(), when it gets the the ens it calls the start() again to loop it and restart the script.
I have added a stop button, but how do i make the script stop ?
We are developing an application in VB.NET 2008. We break the application into smaller multiple dlls so that we can easily update the program at the customer end.We want to know that is their any way to stop the other person to use my dll in their application?i.e we want to lock the dlls such a way that the dlls will be used by us only and not anybody in their application.Also we want to block viewing of dlls code using any code reflector
View 1 RepliesThe application run normally fine on several computer but today we got the error
View 6 RepliesI have an application in which there is a do...loop. I need the do...loop to perform some code and then stop for .1 of a second. When i try using System.Threading.Thread.sleep(), a wait cursot comes up and the application stops working. I was wondering if there was any way to get the thread to stop without stopping the application.
View 5 RepliesI believe I have found a solution! I will be continuing testing to make sure it DOES in fact work, but I'm hopeful :) I have detailed how I found the solution in EDIT THREE of the question.
For anyone wishing to know the full background behind my problem and what I have kind of tried as a result of input from this question, see this: [url]
I will be editing this frequently (>3 times a day most weekdays) as I progress my research and situation, so keep checking back if you are interested or have some information or knowledge of my issue :)
Quick Background:
I have this app I have made that can be crashed by changing my screen saver or locking my work station, and in general whenever a WM_WININICHANGE/WM_SETTINGSCHANGE message is sent to it.
If I can consistently crash my app by changing my screensaver, then SOME part of doing that is sending my app SOME kind of message (not necessarily a windows message, I mean message in the most general sense), which in turn is catastrophic to my application. Due to this, I am trying to find a way to block whatever message is causing my problem from being processed by my application. I am aware this isn't the best way to go about a solution, so you don't need to tell me. Look at the backgroung info or ask why if that bothers you (there is a good reason).
How I can stop my application if not use it for a period of time ?
View 1 Replieshow to stop the application from doing the code on next line immediately when the user enters nothing in the textbox and pressed a button?
View 1 RepliesI have vb.net windows application. I want this app to be protected from being used remotly.Means some users on my network are using this app with remote desktop, some on internet use VNC viewr, team viewer or log me in to access this application.
I want to restrict this kind of access to my application. But I these users must be able to operate other functionality regularly. So can I write anything in my application so that i does not go over VNC viewer or team viewer or remote desktop
I want to stop the execution of my .net application for about 20nanoseconds
so i am trying to measure time needed for specific samples of code, and i want a code that takes only 20nanoseconds
I wrote the following code to build a basic game that makes two cars race (randomgenerator) and let the user pick their bets on the end results. I've gone terribly wrong somewhere in that my cars only race halfway then get stuck behind the start line and the programme keeps repeating the beeping and the messsagebox.show and adding results to the 'incorrect' box.
The only way to terminate the application is to hit 'stop debugging'.
Option Explicit On
Option Strict On
Public Class MainForm
[Code].....
How can I stop my application quitting until a backgroundworker has finished? Its an updater, so basically I want the form to hide until the download is finished, and then exit.I've tried to make a setting to tell the app when it is still downloading, and on form closing check this variable, but it won't work. For some reason it still quits!The update window is in a separate form to the main form, so the user clicks 'Finish', the update form closes and the main form stays open.[code]
View 5 RepliesI have written a converting program, which converts binary files to ASCII files. (VB.net 2010). I need to have a functional "stop" button on the form and I was wondering if there was a simple command to make a program stop, exit all procedures, and wait for user input on the form.
It is not feasible to multithread this application, as it frequently interfaces with the form. Currently, I have a global boolean variable which becomes true if the stop button is pressed, and I have internal loops checking to see if the variable is true. However, I don't to waste CPU on checking a variable if it's not necessary.