VS 2008 Launch And Close Applications?
May 3, 2010
I am trying to open and close application by clicking open and close buttons The application I am trying to open is .bat files and it contains 4 windows.(tftp32, Date_Time_Reader.exe, EthernetHPNA.exe and network535.exe)
Here is the code I used to open the applications System.Diagnostics.Process.Start("Start_MS-SC.bat.ink")
The above codes works fine and open all the windows but I cant close them.
View 2 Replies
ADVERTISEMENT
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
Aug 30, 2009
how 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?
View 3 Replies
Aug 30, 2009
my web browser is my main form and it has a number of sub forms , how can i set it that when i close the main form my sub forms dont close ?
At the moment when i close the main form all the forms close
View 2 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
Oct 26, 2009
i would like to know how i would make a button make an application launch
i have seen people say use the shell command but i cant get it right the button code name is Button1
View 4 Replies
Dec 8, 2009
When running an executable file (written in FORTRAN) directly, there is no problem creating output text files. However, when launched from Visual Basic Express 2008, those reports are not generated. I also observe that the program launched from VB does not wait for a user prompt as it should. What am I missing?
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Process.Start("c:applicationpistonsimulator.exe")
[code].....
View 5 Replies
Apr 8, 2011
I have a .NET WinForms application that has a single form that is set as TopMost so that it runs above all windows on the desktop.This form has a single button on it to launch some other application, such as:Dim app as Processapp = Process.Start("notepad")How can I then make the app TopMost above my application which is already set to TopMost?
View 5 Replies
Mar 22, 2010
I am really new to Visual Studio and VB and I am having trouble closing a single form:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
When I use Me.close() associated with this button it closes the entire project and not just the single form can anyone.
View 2 Replies
Aug 8, 2011
how to add other version of .net framework. like 1.0 or 1.1 .net framework here is my problem i deploy my application, when i install, it always say to download or install the .net framework. i want to run my application under windows xp cause our client does not update their machine.
View 1 Replies
Jan 13, 2010
i have a.exe (portable program) , i put it in my project resources, how can i launch the .exe by clicking a button on my form ?
View 7 Replies
May 3, 2009
I know how to run forms in second monitor, but I dont know how can I lauch and external exe program in second monitor. How can I do this?
View 9 Replies
Sep 12, 2011
I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.
[Code]...
View 2 Replies
Mar 20, 2009
I have a main form that has a button with which a smaller form is shown. Think of the smaller form as the Find/Replace dialog in many applications, such as Notepad. It's important that the form is (what I believe is called) modal. What I mean is that it always stays on top of the main form. I ensure that by calling the Show method with "Me" as the owner argument. Whenever the small form loses focus it will not disappear into the background but stay visible (albeit out of focus). If you don't understand open up Notepad and have a look at the behavior of the Find/Replace dialog.
Here's my problem: instead of actually closing the form when the X is pressed, I want it to simply Hide itself, so its position and the state of any controls (checkboxes etc) is preserved automatically.To achieve this I simply cancel the FormClosing event and Hide it:
vb.net
Private Sub Form2_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
[code]....
To show the form, I use the following (note the (Me) to make the main form the owner of the form; this ensures that it remains visible even when it is out of focus):
vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.Show(Me)
End Sub
Now. When I run my project, and open the Form2 (small form), then hide it again (by 'closing' it), I can no longer close the main form (Form1)! It seems the main form cannot close when the small form still exists (albeit invisible)...?? When I don't use the Me argument in the Show method, I don't get the behavior I want. I know I can set the TopMost property to True but that will also cause it to become visible on top of all the other forms, even windows not part of my application.
View 8 Replies
Oct 15, 2011
My some problem for vs 2008 in mobile applications How to learn mobile device board serial number in vb 2008?
View 2 Replies
Mar 8, 2010
I added a file with a format MP3 into a vb.net 2008 application and it was working and playing prefect, but after I deployed it and installed it onto the same machine (laptop), the file MP3 didn't play? Just there is no sound after installed the application. There is no error message appear. I have used this code to get the path:
Dim aPath As String = Path.GetDirectoryName(Assembly.GetExecutingAssembly.GetModules()(0).FullyQualifiedName)
View 12 Replies
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
Aug 8, 2011
I need to communicate between multiple applications (one server and multiple clients) in the LAN. While googling I came across 3 concepts (TCP/IP, Named Pipes and WCF). I also understand WCF needs lot of study for a starter like me. I need to have one (server) application running on one machine, the values generated by it should be displayed immediately on the other (client) application which will be running on multiple machines in a LAN. Also when the user pauses the process from the client application, it should pause the process on the server application.
View 2 Replies
Mar 27, 2010
I've developed a small cost-tracking app with VB 2008. I was wondering what are the dependencies this app requires to install and run on other computers? I am not using any 3rd party or out-of-ordinary controls/DLLs.
View 5 Replies
Sep 3, 2009
How can i get the name of the applications file? Application.ProductName is only the product name. I want the name thats its called
View 2 Replies
Jun 22, 2010
I want to update my existing application(s) to support multiple languagescultures.
There are a lot of artilcles on Globalization and using cultureinfo class.
I haven't came accross any article which tells about the approach to carry out such conversions.
From what i can see is that I have to update all my interface text , consider culture specific number, date formats and string comparisons.
1. What is most recommendedused method for setting interface text to support multiple languages.
2. Are there any tools available which helps me carry out these changes
View 3 Replies
Apr 27, 2010
I need to automate the installation of 3 different applications and I need a good starting point.
From what I've been reading, APIs seem like the way to go. But, if I can, I'd like to keep it to managed code.
I've checked with the manufacturers to see if they had any available APIs that could allow me to do the automation, but they have none
What do you all think is the best approach? Is there any .NET methods to assist me? Or do I have to go with APIs and unmanaged code?
View 6 Replies
Dec 7, 2011
I'm thinking of creating some applications that will process search and storage requirements.
I want these to be separate applications - so that I could eventually move them to different servers for scalability.
What methods are available for me to have these app's communicate with each other?
View 4 Replies
Jan 9, 2010
I didn't know where to post this question so I hope I put it in the right forum...I am not new to Visual Basic, however I am definitely not an advanced user. I would like to build an application that would allow me to interact with other programs on my computer. For example, if I were to build an application that could control iTunes, how would I go about this?
Or, I am looking to make an application that would allow me to do little things on my computer like disable my track pad if I have a mouse plugged in. How would I build something that could interact with windows (or iTunes) like that?
View 2 Replies
Jan 22, 2010
I'm working on an app at the moment that requires a bunch of apps not made by me to run. The user has to be able to put some inputs into these other apps, but after that I'd like to have a button they can push on my app that minimizes all of these other apps under one icon I can choose. When the icon is clicked, these other apps would jump back up again.
View 11 Replies
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
May 19, 2009
I am developing an application which launch an external windows app, ei called APL.exe Also, this APL.exe launch two console utils, ie. named CON1.exe and CON2.exe I would like to know if is there any way, after APL.exe has died, of killing CON1.exe and CON2.exe, because there is a small possibility that they will not died completly after APL.exe has exited.Also there is another requirement. My final app version could be executed twice in the same machine, so there could be two instances of CON1.exe and CON2.exe, and because this I need a way to kill them not by process name, but knowing which of them has been launched by my current application instance.
View 5 Replies
Nov 12, 2010
I know a bit of VB coding but I'm no professional. I'm currently about developing a web application in Visual Basic but there are a few requirements that I need to check before I begin.1. When creating a 'WPF Web Application' what type of code needs to be used?2. Is there a way of sending information from a web application to a database in Microsoft Access?
View 4 Replies
Mar 6, 2010
I Used this code for the getting installed applications
Sub ListPrograms()
Try
Dim rk As RegistryKey =
[Code]....
But, this code not returns the application filename, only return Application Name
How to get filename? e.g ("C:Program FilesMozilla Firefoxfirefox.exe")
View 1 Replies
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