When Push Close Button On Top Right Of Exe Made / Process Still Runs
Nov 29, 2010
When i push the close button on the top right of the exe i made, the process still runs. How can i make it to where when i close the exe it closes the process too? Also, (this is for shits and giggles) if i wanted to make a button that closed certain processes, what would the code be? For example, the button would close explorer.exe, googledesktop.exe, ect.
View 4 Replies
ADVERTISEMENT
Aug 17, 2011
I've created a very simple form with one button on. I need it so when the form runs, it opens in the bottom right hand corner of the screen regardless of the resolution. It also needs to be always on top of all other applications.
When the buttons pressed, i need it to close all iexplore instances and reopen a fresh instance.
I've tried to search for the answer but to no avail.
View 10 Replies
Apr 29, 2011
I am making a small game of pong and i want to incorporate a pause feature. is there a way i could freeze the form in place and then unfreeze it later at the push of a button. the tutorial i used is below so check it out to get an idea of what i've made so far.
View 2 Replies
Nov 29, 2011
i created an .exe application with vb.net 2010 , my problem is when i run the application and then close it, it still runs in processes . why does this happens ? and how can i fix it?
View 1 Replies
Jan 16, 2009
I'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 Replies
Aug 10, 2011
How can i detect when a new process starts (Any process)?
View 13 Replies
Jan 31, 2009
i wanted to know how i can end a process if it runs more then like 10seconds. I am coding a tool that runs a Perl Script but if the Perl Script doesent work then it just hangs at 1 point so it doesent go further what i wanted to do is tell the Program to end the Process after 10 Seconds.
Dim proc As New Process
For Each names As String In lb_1.Items
With proc.StartInfo
[code]....
View 6 Replies
Oct 10, 2009
I'm making kind of home autmation system with a usb interface card.8 digital & 8 analog inputs and 8 digital & 8 analog outputs.The status of the inputs is refreshed with a timer.tick and written to variable.Now the problem.I want to make an digital output active when a button(real button, not a switch) is pushed and when it is pushed again the output should be set to non active.
action() is called every timer.tick
StatusDigInput1 = status of digital input =true when pushing button
StatusDigOutput1 = status used for displaying output status
[code]....
View 8 Replies
Oct 4, 2009
I was trying to make it so I push a button then a picture pops up, and I can't seem to make it work.
View 2 Replies
Aug 18, 2010
ive been trying to make a application that saves some information from two textfields into a textfile at a fixed location, without any peior confirmation. This is my own best bid. But it says that the Hula string is not a member of a string.
[Code]....
View 13 Replies
Jun 12, 2010
i have a ritch textbox and i wanna if some one selecta text and push the button (sorry i don't know the name in english for this in french :indice et exposant like in microsoft word) like this in the image with color red
View 5 Replies
Mar 3, 2011
I'm in need of a timer that runs a process every 31.25 milliseconds. Thus, after 768 "ticks" have gone exactly 24 seconds.The control "Timer" that exists in Visual Studio does not accept decimal values.So I had to round the value of the range to 31 or 32. But this raises a problem since the end of the 768 ticks there is a difference of half a second or more. And I need to run the 768 ticks in exactly 24 seconds.I've been researching, and I read some things about the "High-Resolution Timer. " But I did not understand exactly how to use it, and how to set your interval to 31.25 mils, and do that every period of this interval to run the code.
View 1 Replies
Dec 30, 2010
I'm very confusing about this code .When push Button1 ,the code not working
[Code]...
View 1 Replies
May 6, 2009
When you push a button, i want to make that a text will come in a richtextbox. etc., when you push the button, "hello, my name is NAME" will appear in the richtextbox.
View 5 Replies
Jul 12, 2011
So I need to make a windows form where it has a button to push and a label. There needs to be a list of 10 words/phrases. And when the button is pushed a random word/phrase is put into the text of the label. I have a section of code/psudo code but it keeps saying I am missing declarations when I try to run the program in debug...
Public Class Form1
'to make the list of different hello world languages
Dim strHello(0 To 6) As String
Dim blDimensioned As Boolean
Dim strText As String
[Code] .....
The errors all seem to be declarations for the lines of the array (strHello(x) = "xxxxx xxxxx")... What declaration am I missing? and how do I make the list give a random response to change the label text?
View 7 Replies
Feb 22, 2012
I'm creating a sub that will run a batch file, and then delete it when it has finished.[code]...
This causes the program to immediately delete the batch file before it can run. How can I break it up so that it won't delete the batch file until after it has finished?
View 2 Replies
Nov 26, 2009
I develop an appliaction which is running a process in the background. This process is "forked" from the application (I'm not using threads). The process may take a few minutes while the 'father' application is waiting to the process output, so I'd like to enhance the application with the following:
a) a "Stop" button (like in IE, FireFox) to stop the process in background
b) A status bar that displays what's going on while the process is running in BG.
how to draw a button or status bar of course... I mean how VB.NET handle with stopping or displaying while something else is running in background and how to do it.
View 2 Replies
Mar 13, 2012
How do I get a new window to open with this button push displaying the link. Here is my code. This seems to open the browser in form 5 and however still navigates in current form webbrowser.
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim myElement As HtmlElement = WebBrowser1.Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")
[CODE]...
View 3 Replies
Mar 15, 2012
I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box.
View 3 Replies
Jun 3, 2011
I need a bit of your help. I am creating a button on my application and I have add the image. I want to know how to make the image to show as the pushbutton when I click it?
View 2 Replies
May 12, 2009
Im really bored an I can't think of another program to make but im going to give it a shot. Im trying to make a program that can turn on caps lock when you push button 1(Yes I know theres already a caps lock button on the keyboard Lol) and turn on off caps lock with button2. Im am also trying to see everytime i push button 3 it will hold shift down for as long as o dont let go of the left mouse button but when I let go of the left mouse button it will let go of button 3 and shift will be off O.o. Is there a way to do this?
View 1 Replies
Aug 5, 2010
I have 3 classes: A form that has a button push that calls another class (Runit) to do work. The "Runit" class. It bulids a collection of process classes (see below) and launches them as threads A process class that increments a variable. This is used to build the object that is "collected" in the Runit class.
Here's the code for each. Note that I misnamed ProcessClass. It would be better named ThreadClass, as it contains the Sub that is to be the target of a threaded execution:
Public Class NT_Test
Public Const NUM_THREADS = 3
Public RC As New RunClass
Public Processes As New Collection
[code]...
The way this code looks to me is that when I trace into bDone (it used to be a boolean), I should see "1" on each pass (NUM_THREADS = 3; the size of the collection). What I'm seeing that mystifies me is "3" in all 3 members of the collection. Because of the initial loop, I might expect 1, 2, 3 respectively if either the thread did not update or I was passing through the same block in as opposed to distinct members of a collection. I can upload the project if that would be helpful. I didn't do so only because I edited a bunch of commented code out of this version that I've used for other experiments.
View 4 Replies
Sep 13, 2009
that my code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="Button1" runat="Server" Text="Refresh" OnClick="Button1_Click" />
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
[Code]...
View 2 Replies
Jul 13, 2009
I've made a project with serveral forms and instances of classes.The program works fine until the last form close.2 messages were shown:1. The exception unknown software exception(0x0eedfade) occured in the application at location (?????????)2. Regular dialogue "Runtime error 217 at (????????)
View 2 Replies
Jul 7, 2011
is it possible to get the name of the process that caused the change in the filesystem?i want to do this programmatically [ie, i can't use any external 3rd party tools like handle]
View 1 Replies
Jan 17, 2009
I have set up a notify icon for my form. I want to make it so that when the user clicks the close button that it doesn't close the form it just takes it to shows the notify icon. They can exit the program from the notify icon. Can someone tell me how to keep it running?
View 2 Replies
Jun 10, 2011
Like in the title. How to create that code ?
View 5 Replies
Nov 29, 2009
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 Replies
Mar 18, 2011
I want to make a progressbar that runs when a button is clicked. However there is also a checkbox that affects the whole thing.If the checkbox is checked, the button works and starts the progress bar.If the checkbox isnt checked, an error message comes up when the button is pressed.
View 1 Replies
Aug 8, 2010
I want when Push Button data from Excel(The next cell data) go to the next Line in Textbox.
Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
Me.TextBox1.Text = wshTest.Range("B2").Value
[Code].....
View 10 Replies