Results 1 to 10 of 10

Thread: [RESOLVED] Msgbox with checkbox

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [RESOLVED] Msgbox with checkbox

    Does anyone have a msgbox including a "Don't ask again" checkbox? I could make my own but just feel a bit lazy today...
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Msgbox with checkbox

    1 x dialog, 3 x button, 1 x checkbox and some labels, 1 x select case...

    Do it yourself.

  3. #3

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Msgbox with checkbox

    Quote Originally Posted by Jmacp
    ...
    Do it yourself.
    That's what I meant to avoid. I thought there might be something in the codebank or somewhere but I couldn't find it.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Msgbox with checkbox

    You need to improve your searching skills!

    Search the VB6 CodeBank for MsgBox, using the "Titles Only" option. There are two results, one of which is exactly what you want.

  5. #5

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Msgbox with checkbox

    Quote Originally Posted by si_the_geek
    You need to improve your searching skills!

    Search the VB6 CodeBank for MsgBox, using the "Titles Only" option. There are two results, one of which is exactly what you want.
    Am I absent minded!!! I had searched 'msgbox' and no results were returned... and now I realize I had typed msgbox in the 'user name' rather than the 'keyword(s)' textbox

    Thank you!
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  6. #6

  7. #7

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Msgbox with checkbox

    Quote Originally Posted by MartinLiss
    If I'm not too late, here you go.
    Thanks Martin, maybe that's more like what I need.

    On the other hand, I think I'd rather not mess around and leave entries in the registry that I may forget about in the future. Or, is it that I should remove it in the cleanup part when closing the application?

    Is it really so advantageous to store the boolean flag in the registry?
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  8. #8
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: [RESOLVED] Msgbox with checkbox

    Well if you want to remember the next time the user runs the program you have to store it externally someplace, and particularly for something simple like this the Registry is easy to use.

  9. #9

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Msgbox with checkbox

    Quote Originally Posted by MartinLiss
    Well if you want to remember the next time the user runs the program you have to store it externally someplace, and particularly for something simple like this the Registry is easy to use.
    I see, actually I want the msgbox to show up at least once at the beginning, but it's important to have the checkbox as it's in a loop. So I don't need to save the value after the program is closed.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  10. #10

Posting Permissions

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



Click Here to Expand Forum to Full Width