Results 1 to 13 of 13
  1. #1
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed

    Post [Tutorial]MsgBox Fundamentals

    [Tutorial] MsgBox Fundementals In Vb.net

    On more then a few occasions questions have been raised in regards to MsgBox's , So, I fugure a MessageBox Tutorial is in order.


    Code Snippets

    Create a Standard MessageBox

    Code:
    MsgBox ("Your Message Here")
    Or the one that is least known and least used

    Code:
    Interaction.MsgBox("Your Message Here")
    Note: Both Work in the same capacity.

    VB Abort, Retry , Cancel With Title

    Code:
    MsgBox("This is a messagebox with Abort, Retry Cancel, and You can set the Title of the messagebox", MsgBoxStyle.AbortRetryIgnore, "Title")
    MsgBox and VbYes

    Code:
    Dim exitout As String
    exitout = MsgBox("Would You Like To Exit?", Microsoft.VisualBasic.MsgBoxStyle.Exclamation + Microsoft.VisualBasic.MsgBoxStyle.YesNo + Microsoft.VisualBasic.MsgBoxStyle.MsgBoxHelp, "Title")
    If exitout = vbYes Then
    End
    End If
    Return a Value from msgbox

    Code:
    Dim ReturnV As Integer
    ReturnV = MsgBox("This is a message box!",MsgBoxStyle.OKCancel + MsgBoxStyle******rmation + MsgBoxStyle.SystemModal, "Message Box")
    If (ReturnV = MsgBoxResult.OK) Then
    Label1.Text("OK button Has Been Clicked")
    'Or use a messagebox, or a textbox or a listbox etc. etc. etc . 
    End If
    Icons

    You will notice in alot of these examples I am using the code

    Code:
    Microsoft.VisualBasic.MsgBoxStyle.Exclamation
    This allows you to display the Microsoft message box icon/Style you would like to display

    Here is the list of icons and style of MsgBox to displa
    y

    Exclamation



    Code:
    Microsoft.VisualBasic.MsgBoxStyle.Exclamation
    Information Icon



    Code:
    Microsoft.VisualBasic.MsgBoxStyle******rmation

    Critical Error



    Code:
    MsgBoxStyle.OkCancel + MsgBoxStyle.Critical
    Question



    Code:
    MsgBoxStyle.OkCancel + MsgBoxStyle.Question
    Hope this helps.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  2. The Following 11 Users Say Thank You to NextGen1 For This Useful Post:

    Blubb1337 (03-03-2010),Disco // (08-12-2010),hopefordope (03-03-2010),MJLover (03-05-2010),mnpeepno2 (03-03-2010),Retoxified (03-03-2010),Sketchy (09-12-2011),why06 (03-03-2010),XGelite_backup (03-03-2010),Zoom (03-03-2010),___x][GooD. (01-19-2011)

  3. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,109
    thanks for posting this tutorial might help some newbs =P



  4. The Following User Says Thank You to Blubb1337 For This Useful Post:

    NextGen1 (03-03-2010)

  5. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    I received 3 PM(s) At-least regarding message box's and there has been 1 maybe 2 posts thats 4-5 times... Figured , it needed to be done


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,971
    My Mood
    Happy
    Easy to understand! Good job as always
    Grattz on 1300posts
    -Rest in peace leechers-

    Your PM box is 100% full.

  7. The Following User Says Thank You to Zoom For This Useful Post:

    NextGen1 (03-03-2010)

  8. #5
    Snape's Avatar
    Join Date
    May 2008
    Gender
    male
    Location
    Hogwarts
    Posts
    13,889
    Reputation
    855
    Thanks
    3,033
    Good work!



  9. The Following User Says Thank You to Snape For This Useful Post:

    NextGen1 (03-03-2010)

  10. #6
    Retoxified's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    148
    Reputation
    8
    Thanks
    171
    Requests for tutorials on messageboxes? What the f* do these kids get in school o__O

  11. #7
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Quote Originally Posted by Retoxified View Post
    Requests for tutorials on messageboxes? What the f* do these kids get in school o__O
    Most kids "learning" vb only learn it because they can't comprehend C++.

    Anyways, good tut.

  12. The Following User Says Thank You to Lolland For This Useful Post:

    NextGen1 (03-03-2010)

  13. #8
    XGelite_backup's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    3
    My Mood
    Tired
    nice. This was needed.

  14. The Following User Says Thank You to XGelite_backup For This Useful Post:

    NextGen1 (03-03-2010)

  15. #9
    poneboy00's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    121
    Reputation
    10
    Thanks
    45
    My Mood
    Happy
    I usually use this method

    Code:
    MessageBox.Show("Message", "Ttile", MessageBoxButtons., MessageBoxIcon.)
    Last edited by poneboy00; 03-03-2010 at 05:50 PM.

  16. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed

    Wink

    Quote Originally Posted by poneboy00 View Post
    I usually use this method

    Code:
    MessageBox.Show("Message", "Ttile", MessageBoxButtons., MessageBoxIcon.)
    Good to know..............



     


     


     



    The Most complete application MPGH will ever offer - 68%




  17. #11
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    THANKSSSSSSSSSSSSSSSSSS!


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  18. #12
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty
    Nice tutorial NextGen1!

    Hmmmm... Don't mean to Hijack your thread, but lately I've been seeing that Critical Error Icon a lot. lol :P

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  19. #13
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Quote Originally Posted by why06 View Post
    Nice tutorial NextGen1!

    Hmmmm... Don't mean to Hijack your thread, but lately I've been seeing that Critical Error Icon a lot. lol :P
    Maybe it's a sign from your computer that something is going to happen


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. Msgbox Spam Tutorial (Annoy People With This)
    By jeffrophin in forum Visual Basic Programming
    Replies: 12
    Last Post: 06-23-2010, 08:14 PM
  2. Warrock Hack - Tutorial
    By Dave84311 in forum WarRock - International Hacks
    Replies: 667
    Last Post: 10-09-2007, 10:10 AM
  3. Gunz Hack - Tutorial
    By Dave84311 in forum General Game Hacking
    Replies: 12
    Last Post: 01-09-2006, 08:16 PM
  4. Replies: 3
    Last Post: 01-04-2006, 09:52 PM
  5. Photoshop Tutorials
    By Dave84311 in forum Art & Graphic Design
    Replies: 3
    Last Post: 12-31-2005, 07:21 AM

Tags for this Thread