Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Making a Message box

  1. #1
    Join Date
    Sep 2004
    Posts
    281
    Rep Power
    0

    Default Making a Message box

    Hi all.........i would like to know or get some ideas as to how to make a function that would work like the msgbox function in VB6.

    what would be different is that i would like the buttons shown on the dialog to say "male , female , child, infant"

    Thanks in Advance
    Anything or Anyone that fails to grow will eventually die. {AI}
    -------------------------------------------------
    Tomorrow is the future!
    Today Is the Tomorrow you made Yesterday!{AI}

  2. #2
    Join Date
    Dec 2002
    Posts
    500
    Rep Power
    0

    Default

    is this for VB.NET or vb6, i'll post some .NET code tomorrow to do this.
    Cultured in Aggression and Koding like a Warrior!!
    “Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
    "The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein

  3. #3
    Join Date
    Apr 2005
    Posts
    1,333
    Rep Power
    0

    Default

    Quote Originally Posted by icymint3 View Post
    is this for VB.NET or vb6, i'll post some .NET code tomorrow to do this.
    He did say VB6.

    Use form. Resize it to a convenient size, and add buttons with the various captions. Disable the main form when the MessageBox form loads, and re-enable it when the MessageBox form closes
    The fox was probably right - they could have been sour grapes.

  4. #4
    Join Date
    Oct 2005
    Posts
    745
    Rep Power
    0

    Default

    When adding the new form, you could make it a dialog.


    You can then show it using

    Code:
    TheDialog.Show vbModal, Me


    This way you don't have to worry about enabling and disabling the main form as this is done automatically.
    Last edited by recursion; Nov 1, 2006 at 08:12 PM.
    3.14159265358979323846264338327950288
    4197169399375105820974944592307816406
    28620899862803482534211706798 pi 101

  5. #5
    Join Date
    Dec 2002
    Posts
    500
    Rep Power
    0

    Default

    heres the code
    it is not fancy, or pretty, it doesn't do magic and its in VB.NET.
    the code is not a png image, my server wont allow me to upload zips. just right click and save the target, use winrar to open it.

    Quote Originally Posted by Artificial_Intelligence View Post
    function that would work like the msgbox function in VB6.
    Last edited by icymint3; Nov 1, 2006 at 05:23 PM.
    Cultured in Aggression and Koding like a Warrior!!
    “Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
    "The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein

  6. #6
    Join Date
    Sep 2004
    Posts
    281
    Rep Power
    0

    Thumbs up

    Thanks all.......will check out the posted results and see which works best for my project.

    IcyMint3! the link gave me an error

    The image “http://web.1asphost.com/icymint3/ExampleCode.png” cannot be displayed, because it contains errors.
    Last edited by Arch_Angel; Nov 2, 2006 at 03:32 AM. Reason: merged multiple posts
    Anything or Anyone that fails to grow will eventually die. {AI}
    -------------------------------------------------
    Tomorrow is the future!
    Today Is the Tomorrow you made Yesterday!{AI}

  7. #7
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default

    Quote Originally Posted by Artificial_Intelligence View Post
    IcyMint3! the link gave me an error
    He said:

    Quote Originally Posted by icymint3 View Post
    just right click and save the target, use winrar to open it.
    Right click on the link and select Save Target. Once saved you can rename it to Example.zip and open it with whatever compression tool you have on your pc, like winzip or winrar.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  8. #8
    Join Date
    Sep 2004
    Posts
    281
    Rep Power
    0

    Default

    Quote Originally Posted by Arch_Angel View Post
    He said:

    Right click on the link and select Save Target. Once saved you can rename it to Example.zip and open it with whatever compression tool you have on your pc, like winzip or winrar.
    Thanks for the observation, but as i said! the link gives and error! If you try to save the file it shows the filename as "ExampleCode.png"
    and if you download that file you get nothing
    Anything or Anyone that fails to grow will eventually die. {AI}
    -------------------------------------------------
    Tomorrow is the future!
    Today Is the Tomorrow you made Yesterday!{AI}

  9. #9
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default

    Quote Originally Posted by Artificial_Intelligence View Post
    Thanks for the observation, but as i said! the link gives and error! If you try to save the file it shows the filename as "ExampleCode.png"
    and if you download that file you get nothing
    I right clicked on the link, selected, "Save Target (or Link) As...", saved it to my desktop as ExampleCode.rar. Then I opened it without problems.

    He is not asking you to open it in your browser as that will give you the image error. You have to right click on it. Not left click.

    But if you still can't get it to work, I can provide the zip file for you in a liitle while.

    Edit: Can download it from my site here: Examplecode.rar
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  10. #10
    Join Date
    Sep 2004
    Posts
    281
    Rep Power
    0

    Default

    Quote Originally Posted by icymint3 View Post
    heres the code
    it is not fancy, or pretty, it doesn't do magic and its in VB.NET.
    the code is not a png image, my server wont allow me to upload zips. just right click and save the target, use winrar to open it.
    My bad man,,,,,,,,,,,,i actually wanted the function to be in VB6, not vb.net
    Anything or Anyone that fails to grow will eventually die. {AI}
    -------------------------------------------------
    Tomorrow is the future!
    Today Is the Tomorrow you made Yesterday!{AI}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •