VB.NET Beginner Tutorial - Start and Kill Programs and Processes (Visual Basic .NET)

preview_player
Показать описание
In this Visual Basic .NET beginner tutorial, I will show you how to easily open and close other programs from within your application. I will also teach you about key differences between the closing methods CloseMainWindow() and Kill().

Tutorial Project Source Code:

Thank you for supporting VBToolbox! :-)
Рекомендации по теме
Комментарии
Автор

Amazing.... the way you make it all so simple and reachable to a quick understanding.
Thank you, VB Tooolbox,
Keep on !

CarlFritz
Автор

Thanks for your tutorials, they are all great !
As a french, I'm surprised that's I can understand almost all of what you're saying. :p

pltxpltx
Автор

great tutorial, how can assign in a single button the close for more aplications?

donycoletta
Автор

Peace be unto you..Sir you are great and your tutorial also awsome

Автор

You're really good, your videos are wonderful!!thanks from Brasil!

bbethr
Автор

Thank's also for ur tutorials. They've been really helpfull!!!!

mihai-sabindragnea
Автор

Any books name any tips any advice becsuse when i watch your videos like i got very delious meal, really i love your work

baherwahby
Автор

nice work keep it up sir btw the log thing i ment earlier was just a log in app

kenclemerbaltar
Автор

sir, i have been just started visual basic and I can declare variable but I cant code to run program so how can i generate code? in window form application program give me idea to generate code

Nobodyme
Автор

Hi sir how can make my program for trial period and can't change the period by change the setting of calendar...can you make
video to explain that's  ...thanks with best regard

khalidramadhan
Автор

Since I don't know how to message through youtube. I have a question. How would I use a If string to check if a filter is checked and if it is keep its filter while sorting. I'm new to this and have tight deadlines for assignments and the text book seems to be written for geniuses. Not much hands-on before being expected to know how to preserve filters and sorting from drop down menus. With no real instruction on how to bring the different codes together to do something similar. I've got 2 days to figure this out.

RavenSaint
Автор

How to use save dialogue btn with especific drive and of application window like ms word active or open file

educationhub
Автор

I will add a tip otherwise a few people will drive themselves insane with a null reference error.
getprocessbyname(name) must be an array BECAUSE your process list is an array, this is why the guy who made this video puts a for / next loop.
The reason i add this is some people might want to make a toggle button.
The following code might look right, but would never work
if condition = true then
process start(yourprocess)
else
if condition = false then
process.kill(yourprocess)
end if

There are two reasons this wont work, firstly getprocessbyname only returns the name, so if you started notepad.exe getprocessbyname will return only "notepad"
The next reason is the error causing reason - when the toggle is activated the process string() isnt holding a value. (null reference)

The correct way is as he showed you, its mostly better to use close, less chance of dataloss. (and also closing a bunch of programs all at the same time one will be more than likely to have something u never intended to lose)

Remember his method will close or kill EVERY single open notepad.

getprocess.id is required then you need to change it to a string,
Now you store that as a live variable in one of the various methods available

Now when you come to close or kill notepad you can instead use
getprocessbyID (ID)
Now if you have 10 open notepads, only the one you want will close.

ckwunch
Автор

SIR ~ PLEASE TELL ME HOW TO CHECK THE PROCESS IN COMPUTER AND WHEN THE PROGRAM HAS STOP IT WILL RESTART THE PROGRAM AGAIN !
THANK YOU VERY MUCH

andrewtang
Автор

I want to exexute excel 386. Where can i find the exe file

pistonring
Автор

Delete a file that is in use by another process with VB.net?

gat_fms
Автор

learn to program before you teach others

Carlos.
visit shbcf.ru