My MsgBox (1 Viewer)

smig

Registered User.
Local time
Today, 02:57
Joined
Nov 25, 2009
Messages
2,209
I'm using my own MsgBox.
This MsgBox has many more options not available in the built in one:
Nicer and bigger icons
Changing the Text color
Text can be Bold
Having an Hyperlink
Up to 4 buttons
Any text for buttons
Support for Right to Left orientation


Comments are welcome.

Feel free to use for your needs
A thank you note in your app. will be nice :)
 

Attachments

  • Fuchs_MsgBox.mdb
    292 KB · Views: 490

MarkK

bit cruncher
Local time
Yesterday, 16:57
Joined
Mar 17, 2004
Messages
8,180
Hey Smig, that looks really cool. A few observations . . .

If there is no AppTitle property set, an error occurs that is not handled. This line . . .
Code:
        hwnd = FindWindow(vbNullString, CurrentDb.Properties("AppTitle"))
. . . in mdl_Fuchs_CenterFormOnScreen.WindowSize.

One thing you can do to center a form more simply, is
1) set auto center on in design mode
2) check and store the size on open,
3) do your resize,
4) use Me.Move to move the form 1/2 the distance of the amount of your resize.

I would write code with more sub routines, notably your Fuchs_MsgBox.Open() routine. You do multiple tasks, and your code would be far easier to understand if each task was a clearly named Sub.

But nice work, very simple and clean look. :)
 

smig

Registered User.
Local time
Today, 02:57
Joined
Nov 25, 2009
Messages
2,209
Markk, Thank you for your comments.

I found no other way to center other then that.
I 'll try to search for 'ms access ' first.
Another simple option is to set a title if it has not.
 
Last edited:

MarkK

bit cruncher
Local time
Yesterday, 16:57
Joined
Mar 17, 2004
Messages
8,180
Smig, here's a quick and easy way to center a form after a programmatic resize . . .
 

Attachments

  • center.zip
    13.5 KB · Views: 335

MarkK

bit cruncher
Local time
Yesterday, 16:57
Joined
Mar 17, 2004
Messages
8,180
I mostly come here and look for stuff that hasn't been answered. Any thread with you, Dave, JHB, and Frothingslosh is a thread that is under control, IMO!
 

Frothingslosh

Premier Pale Stale Ale
Local time
Yesterday, 19:57
Joined
Oct 17, 2012
Messages
3,276
I mostly come here and look for stuff that hasn't been answered. Any thread with you, Dave, JHB, and Frothingslosh is a thread that is under control, IMO!

:eek:

While I appreciate being grouped in with them, I think we all know I'm not in everyone else's league yet!
 

Users who are viewing this thread

Top Bottom