Results 1 to 4 of 4
  1. #1
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514

    [HELP] MsgBoxStyle.YesNo

    i've done it once before, but cant remember how


    how do i make it, if the user clicks no then it will just close the MsgBox

    and if they click yes then

    it will (ex) goto form2

  2. #2
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    Code:
    Dim Answer As Integer = MessageBox.Show("Yes or No?", "", MessageBoxButtons.YesNo)
    
            If Answer = 6 Then ' Yes is pressed
                'Do something
            Else ' No is pressed
                'Do something
            End If
    Assembly Programmer

  3. The Following 2 Users Say Thank You to Shark23 For This Useful Post:

    Cryptonic (07-10-2010),GameTrainerMaker (06-23-2010)

  4. #3
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    [php]
    If MessageBox.Show("Text", "Title", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) = Windows.Forms.DialogResult.Yes Then

    'do something'

    Else

    'do something'

    End If
    [/php]

    Works better.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  5. #4
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    hmmm.... I've never used that. My method has always worked for me but I'll try that.
    Assembly Programmer

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  4. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM
  5. [HELP] MsgBoxStyle.YesNo[Solved]
    By MintSlice in forum Visual Basic Programming
    Replies: 12
    Last Post: 03-25-2010, 10:34 AM