Access Europe User Group - Wed 7 Jan: Spot the Difference – A new style MsgBox for Access (Neil Sargent)

Hi Jason
Just tested this.
It works well when the message form has no object behind it. However I got some odd 'ghosting' effects when I moved the form over another form or the nav pane or partly off screen to the left. Not looked into the reasons as yet.

For anyone else wanting to try this code without overwriting the original, rename the existing clsFormWindow and then import the code into a new blank class module with that name.

Hi Colin,

Yes, I had another quick look and I can also see the brief flashing/ghosting effect on movement that you identified. I’ll dig into this when I get a chance.

Interestingly, on my PC the original message actually shows with rounded edges. It shouldn’t be too difficult to apply that styling to the form as well so it more closely mimics the original, though I’m not sure whether the rounded edges are unique to my setup. I’ll explore that too.


This is what my original MS Access message box looks like(Round Edges)



Screenshot 2026-01-11 212437.png



If you recall i sent you a small module that creates round edges many years ago now on a form(Useful before it was built in)
Below is what i see within the MsgBox Demo (Square Edges) however back form has round edges which is only identifiable on form move.


Screenshot 2026-01-11 213109.png


Also, on my pc had to adjust the top right Close X position ever so slightly to the left to prevent the bleed - wondering if anyone else experienced that or just me:
Screenshot 2026-01-11 213046.png


Fixed:

screenshot-2026-01-11-213652-png.122879
 

Attachments

  • Screenshot 2026-01-11 213652.png
    Screenshot 2026-01-11 213652.png
    4.1 KB · Views: 14
Hi Jason
The new style messages have rounded corners in Win 11 as do all forms including Neil's custom form replicating the Access version.
In Win 10, both have square corners.
From memory, I think Neil deliberately left it so that Windows would automatically update the appearance according to version.

I also see the slight overlap bleed on one of my machines

Although in my opinion, the replication is very good, due to time constraints, there are a few minor issues and unfinished features.
For example, the replicant form
  • doesn't adjust the font size when text scaling is increased in Windows Ease of Access display options
  • doesn't update its appearance when using the Access dark grey or black themes
 
I've just published an article describing different ways of customizing the Access message box as outlined in post #11


The article includes details about three ways of changing Windows Ease of Access settings to adjust font size, apply colour filters and/or high contrast 'themes'. It also provides links to various alternative message boxes, all of which provide additional functionality.

Hopefully, something for everyone. 😁
 
Last edited:

Users who are viewing this thread

Back
Top Bottom