Results 1 to 9 of 9
  1. #1
    Kollie8ice's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Australia
    Posts
    62
    Reputation
    12
    Thanks
    11
    My Mood
    Amazed

    Question [help]MSGBOX[Solved]

    Okay, so I made stuff already, but when I see someone's VB work, they have..like a 'help' button or something close to that.

    Is this correct?
    Code:
    Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
            Dialog1.Enabled = True
        End Sub
    or

    Code:
    Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
            Dialog1.Text = Time0PassedBy.ToString
        End Sub
    Dialog1 is my..public class name, well, when I press on my ''Help'' button, Im trying to get it to show my ''Dialog1'' which explains the stuff, but I don't seem to code it right because the Dialog doesn't show up when I press the help button. So can someone show my the right way?

    I know its something like
    Code:
    Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
            ___________ <- I dont know how to make that when i press my button20 it has the dialog pop up
       End Sub
    All help will be appreciated, I really need the help..

    Thanks!
    Always aim for the stars, even if you miss, you'll land on the moon!

    Starting to learn how to hack and create programs that will help people as these hacks from MPGH.net has helped me.

  2. #2
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    make it with a MsgBox

  3. The Following User Says Thank You to Sixx93 For This Useful Post:

    Kollie8ice (03-16-2010)

  4. #3
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Yes, you can try Msgbox.

    Here is an example:

    Code:
    Msgbox ("Help content....")

  5. The Following User Says Thank You to MJLover For This Useful Post:

    Kollie8ice (03-16-2010)

  6. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    If you want to display the real exception and not a "fake" or 'Created" error, use

    [php]
    Try
    ' Your code here , What it is you want to try and do
    Catch ex as exception
    msgbox (ex.message)
    End Catch

    [/php]

    So an example of use would be

    in a button click add

    [php]
    Try
    Dim l as integer = textbox1.text
    Textbox1.text = "Food"
    Catch Ex as Exception
    'If you get an error
    msgbox(ex.message)
    end catch
    [/php]

    Im going off the top of my head, but when you Press the button you should now get the real error, because Food is not a Integer.


    If that is what you are looking for

    Messages in the forms listed above are for errors / comments / warnings, but used in that manner when you know what you want to display

    So in a scenerio where you know the message you want to display it is msgbox (message here)

    Also for more help on how to use message boxes, I have a tutorial in my tuts sticky

    Here is the link
    https://www.mpgh.net/forum/33-visual-...damentals.html
    Last edited by NextGen1; 03-15-2010 at 08:30 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




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

    Kollie8ice (03-16-2010),Unkn0wn_h4cker (03-15-2010)

  8. #5
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    Or if you want the Dialog1 to pop up use

    [php]Dialog1.Show[/php]

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

    Kollie8ice (03-16-2010)

  10. #6
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    Try this out

    [php]Dim myForm As New Form1
    myForm.Show()[/php]
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  11. The Following User Says Thank You to zmansquared For This Useful Post:

    Kollie8ice (03-16-2010)

  12. #7
    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 zmansquared View Post
    Try this out

    [php]Dim myForm As New Form1
    myForm.Show()[/php]
    Which will work for generating a new instance of form1 and displaying it.

    I think he is looking to display real errors however .


     


     


     



    The Most complete application MPGH will ever offer - 68%




  13. The Following User Says Thank You to NextGen1 For This Useful Post:

    Kollie8ice (03-16-2010)

  14. #8
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    ah, oops sorry
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  15. The Following User Says Thank You to zmansquared For This Useful Post:

    Kollie8ice (03-16-2010)

  16. #9
    Kollie8ice's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Australia
    Posts
    62
    Reputation
    12
    Thanks
    11
    My Mood
    Amazed
    Thank you to all those who replied it worked very well!
    Always aim for the stars, even if you miss, you'll land on the moon!

    Starting to learn how to hack and create programs that will help people as these hacks from MPGH.net has helped me.

  17. The Following User Says Thank You to Kollie8ice For This Useful Post:

    NextGen1 (03-16-2010)

Similar Threads

  1. [Help Request] Please help me solve the hackers!
    By j148148 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 2
    Last Post: 07-05-2011, 12:39 PM
  2. [Help]Agreements[Solved]
    By zmansquared in forum Visual Basic Programming
    Replies: 5
    Last Post: 03-15-2010, 07:41 PM
  3. [Help]CheckBox[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-07-2010, 10:54 PM
  4. [Help]PictureBox[Solved]
    By zmansquared in forum Visual Basic Programming
    Replies: 6
    Last Post: 03-07-2010, 10:52 PM
  5. [Help]Progressbar[Solved]
    By Shocker2010 in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-06-2010, 02:03 PM