Hi guys,
I want to place a checkbox in the messagebox. (similar to one that we see in applications having -> 'Do not show this message again!')
I think this is possible using subclassing.
Can anyone show how???
Thanks,
![]()
![]()
![]()
Hi guys,
I want to place a checkbox in the messagebox. (similar to one that we see in applications having -> 'Do not show this message again!')
I think this is possible using subclassing.
Can anyone show how???
Thanks,
![]()
![]()
![]()
I think it is not possible, but you never know it just might be possible using all those api calls. Anyway, you always have the option of creating your own msgbox.
I'm pretty sure you can do it, as I saw a submission on planet source code once that changed the text in the buttons on an MSGBOX. And the guy said that if you changed his code a little you could add things like checkboxes. It would probably be pretty hard though.
In VB it is easier (by a factor of 100) to make your own form that looks like a message box but has a checkbox as well. You can use the API calls DrawIcon and GetStockObject to draw the messagebox icons.
VB Code:
Declare Function DrawIcon Lib "user32" Alias "DrawIcon" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long Declare Function GetStockObject Lib "gdi32" Alias "GetStockObject" (ByVal nIndex As Long) As Long Public Enum IconTypes IDI_APPLICATION = 32512& IDI_ASTERISK = 32516& IDI_EXCLAMATION = 32515& IDI_HAND = 32513& IDI_QUESTION = 32514& End Enum
HTH,
Duncan
----8<---------------------------------------
NEW - The .NET printer queue monitor component
----8<---------------------------------------
Now with Examples of use
Can you post the link to the PSC? I know you can change the font of a MessageBox, but including a checkbox would mean loading the checkbox, then re-assigning its parent to messagebox. Ther in lies the problem.Originally posted by Rick Bull
I'm pretty sure you can do it, as I saw a submission on planet source code once that changed the text in the buttons on an MSGBOX. And the guy said that if you changed his code a little you could add things like checkboxes. It would probably be pretty hard though.