VB.NET Tutorial 20 - Advanced Message Box (Visual Basic 2008/2010)

preview_player
Показать описание
In the first tutorial, we went over how to display a message box. Now in this tutorial, we show our progress by using a message box to ask the user a question and then execute code depending on the answer.

For more information, check out the website:
Рекомендации по теме
Комментарии
Автор

Thanks man you don't know how stressfull you get when you can't find a solution to a problem for about an hour! You da man!

bilalk
Автор

helped me a lot in my big program that i am creating right now! thank you for all your great tutorials!

Many_Mirrors
Автор

Very very helpful video and made my life much more easier to write efficient code.

sakayaraj
Автор

Great video! Good information! That's a good and advanced msgbox, but just to simplify you commands (The commands are the same, just wrote different);

Dim YesNo As New MsgBoxResult
YesNo = msgbox("Whatever", vbyesno + vbquestion, "Whatever")
If YesNo = vbYes Then
'Do Something...
Else
'Do something else...

Because when it comes to programming advanced and big stuff, it's important to make commands as short as possible because of program's efficiency and save work.

havatra
Автор

Man, thank you! i learned so much from you! Keep up the good work!

kingquefaz
Автор

Very very cool bro. Thanks for the tips! This made so much sense!

jetpaq
Автор

Hi, TeachMeComputer!
This really helped for my program...
:)

upeskino
Автор

Hi!
This video REALLY helped for my program's making... :)

upeskino
Автор

You can also try this:

dim mymsg as integer
mymsg = Msgbox("You want to quit?", messagebox.buttons.yesno, messagebox.icon.warning), icon depends on your choice.
Then you can do like
if mymsg = 6 then
application.exit
end if
all the, OK, cancel, yes, no, and so on gives a different value, i'll post them here:

OK = 1
Cancel = 2
Abort = 3
Retry = 4
Ignore = 5
Yes = 6
No = 7

For more help feel free to ask

SmotherM
Автор

you save my brain dude. im really having a hard time configuring what could be the code
tnx bro..


anyway can make a vid on how to save the forecolor settings of a textbox..
tnx again

giancarlonavales
Автор

This tutorial is really good.
Can you make an video, to put a scroll bar in message box ?

ersanjaysoni
Автор

My only suggestion might be to reduce to a variable called "yes" at least (I think) it is good programming practice to do this (Makes the if statement easier to read)

Otterinheaven
Автор

m a noob at programming .. understood all the previous videos of urs (thanx to the awesome explaination) .. but had been getting 3 constant errors regarding messagebox and im unable to figure them out .. tried doig everything from scratch but all in vain .. kindly help


thanxs

irfanharun
Автор

I tried abortretryignore as the buttons and I cannot add a messagebox for ignore. Can you help me?

a.andrei
Автор

( English ) Thanks
( Indonesian ) Terimakasih

asphiraandreasrechta
Автор

is it requried that every time to identify whether yes or no is pressed we need to use such a long syntax, can we put if statment below msgbox saying
if windows.diaglogresult.yes = "Yes" then
messagebox.show("you clicked Yes Button")

vinayak
Автор

How to make a form active while there is a message box? I want the user to use a calculator while he can read what's on the message box? Any thoughts?

BadrAlKhamissi
Автор

Also at the "else" at 3:35 can also be ElseIf Windows.Forms.DialogResult.No Then

KillerGaara
Автор

Mhelodie Gonda - Instead of using MessageBox.Show("You Clicked Yes") use Me.Close()

viralsampat
Автор

@havatra Totally agree with havatra, please make your statements shorter when possible

TheGuyMath
join shbcf.ru